Effect.GetHandler
Signature
lua
Effect.GetHandler(Effect e) -> CardDescription
Returns the card currently handling e, usually the card that registered it with Card.RegisterEffect.
Parameters
eEffect
Returns
Card
Source
D:\Programs\GitHub\ygopro-core\libeffect.cpp:640
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 10412 indexed script(s).
- Search this function in the Script Explorer with
Effect.GetHandler.
Script Examples
Salamandra with Chain (62091148)
Source: Scripts/c62091148.lua
lua
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local c=e:GetHandler()
local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID)
local e1=Effect.CreateEffect(c)Astrograph Sorcerer, the Starfrost Magician (48171151)
Source: Scripts/c48171151.lua
lua
end
function s.ptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return c:IsDestructable()
and Duel.IsExistingMatchingCard(s.pfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,tp) endArtmage Non-Finito (74631897)
Source: Scripts/c74631897.lua
lua
end
function s.condition(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:IsSummonType(SUMMON_TYPE_FUSION) or c:GetFlagEffect(id)>0
end