Effect.GetOwner
Signature
lua
Effect.GetOwner(Effect e) -> CardDescription
Returns the card that owns e.
Parameters
eEffect
Returns
Card
Source
D:\Programs\GitHub\ygopro-core\libeffect.cpp:639
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 444 indexed script(s).
- Search this function in the Script Explorer with
Effect.GetOwner.
Script Examples
Salamandra with Chain (62091148)
Source: Scripts/c62091148.lua
lua
local cid=Duel.GetChainInfo(ev,CHAININFO_CHAIN_ID)
if cid~=e:GetLabel() then return end
if e:GetOwner():IsRelateToChain(ev) then
e:GetOwner():CancelToGrave(false)
endGoyo Emperor (59255742)
Source: Scripts/c59255742.lua
lua
local tc=eg:GetFirst()
local rc=tc:GetReasonCard()
return eg:GetCount()==1 and rc:IsControler(tp) and rc:GetOwner()~=tp
and tc:IsType(TYPE_MONSTER) and tc:IsReason(REASON_BATTLE) and tc:IsLocation(LOCATION_GRAVE)
endHecahands Tartaros (57809669)
Source: Scripts/c57809669.lua
lua
end
function s.ffilter(e,c)
return c:IsFaceup() and c:GetOwner()==1-e:GetHandlerPlayer()
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)