Skip to content

Effect.IsHasProperty ​

Signature ​

lua
Effect.IsHasProperty(Effect e, int prop1, [int prop2]) -> bool

Description ​

Checks whether e contains the requested effect property flags. prop1 is checked against the first property word and optional prop2 against the second property word. Passing 0 for a word makes that word pass.

Parameters ​

  • e Effect - Effect whose property words are checked.
  • prop1 int - Mask checked against the first property word. Use 0 to ignore this word.
  • prop2 int optional - Mask checked against the second property word. Omitted or 0 means this word passes.

Returns ​

  • bool - True when every nonzero requested property mask is present on e.

Source ​

  • D:\Programs\GitHub\ygopro-core\libeffect.cpp:650

Used By ​

Generated from the local Scripts/ folder and cards.cdb.

  • Detected in 190 indexed script(s).
  • Search this function in the Script Explorer with Effect.IsHasProperty.
CardIDScriptDetected Calls
Levia-Dragoon - Daedalus78579058Scripts/c78579058.lua1
Azure Ocean Dragon Lord - Neo-Daedalus Rage41570943Scripts/c41570943.lua1
Enneacraft - Asta.PIXEA28454232Scripts/c28454232.lua1
Red-Eyes Slash Dragon21140872Scripts/c21140872.lua1
Frightfur March74416026Scripts/c74416026.lua1
Ursarctic Grand Chariot80086070Scripts/c80086070.lua1
Arcana Force EX - The Light Ruler5861892Scripts/c5861892.lua1
Gilti-Gearfried the Magical Steel Knight49161188Scripts/c49161188.lua1
VARefar, the Judge of Ball19743887Scripts/c19743887.lua1
Arcana Extra Joker64454614Scripts/c64454614.lua1
Machina Fortress5556499Scripts/c5556499.lua1
Naturia White Oak24644634Scripts/c24644634.lua1
Dinomist Rex63251695Scripts/c63251695.lua1
Majestic Star Dragon7841112Scripts/c7841112.lua2
Chaos Mystic Box75983808Scripts/c75983808.lua1
Shooting Star Dragon T.G. EX63180841Scripts/c63180841.lua1
Rokket Barrage53481938Scripts/c53481938.lua1
Parasite Paranoid14457896Scripts/c14457896.lua1
Imposter Shift89027418Scripts/c89027418.lua1
Flash Charge Dragon95372220Scripts/c95372220.lua1
Dyna Tank75780818Scripts/c75780818.lua1
Rubysapphirus, the Adamant Jewel6906306Scripts/c6906306.lua1
R.B. Last Stand43450363Scripts/c43450363.lua1
Underworld Goddess of the Closed World98127546Scripts/c98127546.lua1
...and 166 more

Script Examples ​

Levia-Dragoon - Daedalus (78579058) ​

Source: Scripts/c78579058.lua

lua
end
function s.LConditionFilter(c,f,lc,e)
	return (c:IsFaceup() or not c:IsOnField() or e:IsHasProperty(EFFECT_FLAG_SET_AVAILABLE))
		and c:IsCanBeLinkMaterial(lc) and (not f or f(c))
end

Azure Ocean Dragon Lord - Neo-Daedalus Rage (41570943) ​

Source: Scripts/c41570943.lua

lua
end
function s.LConditionFilter(c,f,lc,e)
	return (c:IsFaceup() or not c:IsOnField() or e:IsHasProperty(EFFECT_FLAG_SET_AVAILABLE))
		and c:IsCanBeLinkMaterial(lc) and (not f or f(c))
end

Enneacraft - Asta.PIXEA (28454232) ​

Source: Scripts/c28454232.lua

lua
	local c=e:GetHandler()
	if c:IsStatus(STATUS_BATTLE_DESTROYED) then return false end
	if not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then return false end
	local tg=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
	return Duel.IsChainDisablable(ev) and tg and tg:IsExists(s.ccfilter,1,nil,tp) and ep~=tp and e:GetHandler():IsFacedown()