Effect.IsActiveType
Signature
lua
Effect.IsActiveType(Effect e, int type) -> boolDescription
Checks whether e's active card type contains at least one flag from type.
Parameters
eEffecttypeint
Returns
bool
Source
D:\Programs\GitHub\ygopro-core\libeffect.cpp:647
Guided Examples
Learn how to use this function in context:
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 1101 indexed script(s).
- Search this function in the Script Explorer with
Effect.IsActiveType.
Script Examples
Performage Cup Tricker (6812770)
Source: Scripts/c6812770.lua
lua
function s.xyzcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:IsReason(REASON_COST) and re:IsActivated() and re:IsActiveType(TYPE_XYZ)
and c:IsPreviousLocation(LOCATION_OVERLAY)
endD/D/D/D Super-Dimensional Sovereign Emperor Zero Paradox (97417863)
Source: Scripts/c97417863.lua
lua
end
function c97417863.lefilter(c,tp,re)
return re and re:IsActiveType(TYPE_SPELL) and c:IsReason(REASON_EFFECT)
and c:IsPreviousControler(tp) and c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousSetCard(0x10af)
endBujinki Ahashima (71095768)
Source: Scripts/c71095768.lua
lua
function c71095768.descon(e,tp,eg,ep,ev,re,r,rp)
if not (Duel.GetChainInfo(ev,CHAININFO_CHAIN_ID)==c71095768[0]
and c71095768[1]==LOCATION_MZONE and re:IsActiveType(TYPE_XYZ)) then return false end
local c=e:GetHandler()
local zone=(c:GetLinkedZone(0) & 0x7f) | ((c:GetLinkedZone(1) & 0x7f)<<0x10)