Card.GetOwner
Signature
lua
Card.GetOwner(Card c) -> intDescription
Returns c's original owner player.
Parameters
cCard
Returns
int
Source
D:\Programs\GitHub\ygopro-core\libcard.cpp:3507
Guided Examples
Learn how to use this function in context:
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
Card.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)