Skip to content

Effect.GetHandler ​

Signature ​

lua
Effect.GetHandler(Effect e) -> Card

Description ​

Returns the card currently handling e, usually the card that registered it with Card.RegisterEffect.

Parameters ​

  • e Effect

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.
CardIDScriptDetected Calls
Salamandra with Chain62091148Scripts/c62091148.lua5
Astrograph Sorcerer, the Starfrost Magician48171151Scripts/c48171151.lua7
Artmage Non-Finito74631897Scripts/c74631897.lua2
Pendulum Evolution55795155Scripts/c55795155.lua3
Levia-Dragoon - Daedalus78579058Scripts/c78579058.lua1
Lady's Dragonmaid48658295Scripts/c48658295.lua1
Azure Ocean Dragon Lord - Neo-Daedalus Rage41570943Scripts/c41570943.lua3
Eternal Favorite87532344Scripts/c87532344.lua9
Surprise Fusion35167375Scripts/c35167375.lua2
Astrograph Sorcerer76794549Scripts/c76794549.lua5
Spellbook of the Grand Circle11911336Scripts/c11911336.lua6
Ultra Polymerization76647978Scripts/c76647978.lua1
Goyo Emperor59255742Scripts/c59255742.lua6
Accel Synchro Stardust Dragon30983281Scripts/c30983281.lua4
Melffy Playtime Surprise58036097Scripts/c58036097.lua1
Ashtraja Susanoo17020474Scripts/c17020474.lua3
Deftero Enneacraft - "alazoneIA"92171126Scripts/c92171126.lua6
Destiny HERO - Destro-Dogma25158975Scripts/c25158975.lua2
Yomagna the Fire Phantom17350692Scripts/c17350692.lua6
Fiendsmith's Sequence49867899Scripts/c49867899.lua3
El Shaddoll Apkallone50907446Scripts/c50907446.lua3
Favorite HERO Flame Wingman13243124Scripts/c13243124.lua2
Mixousia the Confounder80843006Scripts/c80843006.lua6
Gem-Knight Dispersion24220368Scripts/c24220368.lua1
...and 10388 more

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) end

Artmage 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