Card.IsAttribute
Signature
lua
Card.IsAttribute(Card c, int attribute) -> boolDescription
Checks whether c currently has at least one Attribute flag from attribute.
Parameters
cCardattributeint
Returns
bool
Source
D:\Programs\GitHub\ygopro-core\libcard.cpp:3549
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 1461 indexed script(s).
- Search this function in the Script Explorer with
Card.IsAttribute.
Script Examples
Salamandra with Chain (62091148)
Source: Scripts/c62091148.lua
lua
end
function s.filter(c)
return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_FIRE)
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)Destiny HERO - Destro-Dogma (25158975)
Source: Scripts/c25158975.lua
lua
end
function s.spfilter(c)
return (c:IsAttribute(ATTRIBUTE_DARK) or c:IsRace(RACE_WARRIOR)) and c:IsAbleToRemoveAsCost()
end
function s.spcon(e,c)Fiendsmith's Sequence (49867899)
Source: Scripts/c49867899.lua
lua
end
function s.eqfilter(c)
return c:IsFaceup() and c:IsRace(RACE_FIEND) and c:IsAttribute(ATTRIBUTE_LIGHT) and not c:IsType(TYPE_LINK)
end
function s.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)