Skip to content

Card.IsStatus ​

Signature ​

lua
Card.IsStatus(Card c, int status) -> bool

Description ​

Checks whether c currently has at least one status flag from status. Common legality checks use this for temporary engine states such as STATUS_BATTLE_DESTROYED before allowing a Damage Step Quick Effect.

Parameters ​

  • c Card - Card whose current status flags are checked.
  • status int - Status flag or combined status mask, such as STATUS_BATTLE_DESTROYED.

Returns ​

  • bool - true if c has any flag included in status.

Source ​

  • D:\Programs\GitHub\ygopro-core\libcard.cpp:3559

Guided Examples ​

Learn how to use this function in context:

Used By ​

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

  • Detected in 461 indexed script(s).
  • Search this function in the Script Explorer with Card.IsStatus.
CardIDScriptDetected Calls
Salamandra with Chain62091148Scripts/c62091148.lua1
Eternal Favorite87532344Scripts/c87532344.lua1
Enneacraft - Asta.PIXEA28454232Scripts/c28454232.lua1
Converging Wishes20007374Scripts/c20007374.lua2
Graydle Split75361204Scripts/c75361204.lua1
Enneacraft - Atil.SPIA71801447Scripts/c71801447.lua1
W:P Fancy Ball4993187Scripts/c4993187.lua1
Camelot, Realm of Noble Knights and Noble Arms15635751Scripts/c15635751.lua1
Regenesis Birth27781371Scripts/c27781371.lua1
Gouki Sheik Ogre7382007Scripts/c7382007.lua1
Enneacraft - Atori.MAR54842941Scripts/c54842941.lua1
Union Activation38527680Scripts/c38527680.lua1
Endymion, the Mighty Master of Magic3611830Scripts/c3611830.lua1
Toadally Awesome90809975Scripts/c90809975.lua1
Favorite Hero11881272Scripts/c11881272.lua1
Quick Summon10086952Scripts/c10086952.lua1
Ojama Pajama75884822Scripts/c75884822.lua1
Amaze Attraction Wonder Wheel93473606Scripts/c93473606.lua2
Supreme King Z-ARC - Synchro Universe48654267Scripts/c48654267.lua3
Spirit Poacher85150300Scripts/c85150300.lua1
Sleepy Scapegoats3129527Scripts/c3129527.lua1
Rank-Up-Magic Numeron Force48333324Scripts/c48333324.lua1
Laevateinn the Burning Blade6260560Scripts/c6260560.lua1
Sea Lancer22842214Scripts/c22842214.lua1
...and 437 more

Script Examples ​

Salamandra with Chain (62091148) ​

Source: Scripts/c62091148.lua

lua
function s.operation(e,tp,eg,ep,ev,re,r,rp)
	local c=e:GetHandler()
	if not c:IsRelateToEffect(e) or c:IsStatus(STATUS_LEAVE_CONFIRMED) then return end
	local tc=Duel.GetFirstTarget()
	if tc:IsRelateToEffect(e) and tc:IsFaceup() and Duel.Equip(tp,c,tc) then

Eternal Favorite (87532344) ​

Source: Scripts/c87532344.lua

lua
	local c=e:GetHandler()
	if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,e:GetHandler())
		and c:IsAbleToGraveAsCost() and c:IsStatus(STATUS_EFFECT_ENABLED) end
	Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD)
	Duel.SendtoGrave(c,REASON_COST)

Enneacraft - Asta.PIXEA (28454232) ​

Source: Scripts/c28454232.lua

lua
function s.discon(e,tp,eg,ep,ev,re,r,rp)
	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)