Card.IsControler
Signature
lua
Card.IsControler(Card c, int controler) -> boolDescription
Checks whether c's current controller is controler.
Parameters
cCardcontrolerint
Returns
bool
Source
D:\Programs\GitHub\ygopro-core\libcard.cpp:3662
Guided Examples
Learn how to use this function in context:
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 4951 indexed script(s).
- Search this function in the Script Explorer with
Card.IsControler.
Script Examples
Salamandra with Chain (62091148)
Source: Scripts/c62091148.lua
lua
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and s.filter(chkc) end
if chk==0 then return e:IsCostChecked()
and Duel.IsExistingTarget(s.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) endAstrograph Sorcerer, the Starfrost Magician (48171151)
Source: Scripts/c48171151.lua
lua
end
function s.spfilter1(c,e,tp)
if not c:IsCanBeSpecialSummoned(e,0,tp,false,false) or not c:IsControler(tp) then return false end
if c:IsLocation(LOCATION_EXTRA) then return c:IsFaceup() and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0 end
if c:IsLocation(LOCATION_GRAVE) then return aux.NecroValleyFilter()(c) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 endArtmage Non-Finito (74631897)
Source: Scripts/c74631897.lua
lua
function s.spfilter(c,tp,sc)
return c:IsFusionSetCard(0x1cd) and c:IsLevelAbove(7)
and (c:IsControler(tp) or c:IsFaceup())
and Duel.GetLocationCountFromEx(tp,tp,c,sc)>0
and c:IsCanBeFusionMaterial(sc,SUMMON_TYPE_SPECIAL)