Skip to content

Card.GetDestination ​

Signature ​

lua
Card.GetDestination(Card c) -> int

Description ​

Returns the destination location currently stored in c's send-to parameters.

Parameters ​

  • c Card

Returns ​

  • int

Source ​

  • D:\Programs\GitHub\ygopro-core\libcard.cpp:3526

Used By ​

Generated from the local Scripts/ folder and cards.cdb.

  • Detected in 7 indexed script(s).
  • Search this function in the Script Explorer with Card.GetDestination.
CardIDScriptDetected Calls
Neos Fusion14088859Scripts/c14088859.lua1
Madolche Chateau14001430Scripts/c14001430.lua1
Tiki Soul49514333Scripts/c49514333.lua1
Archlord Kristya59509952Scripts/c59509952.lua1
Storm Caller15935204Scripts/c15935204.lua2
Evigishki Merrowgeist76372778Scripts/c76372778.lua2
Spirit Elimination69832741Scripts/c69832741.lua1

Script Examples ​

Neos Fusion (14088859) ​

Source: Scripts/c14088859.lua

lua
function c14088859.repfilter2(c,tp,re)
	return c:IsControler(tp) and c:IsLocation(LOCATION_MZONE) and aux.IsMaterialListCode(c,89943723) and c:IsType(TYPE_FUSION)
		and c:GetDestination()==LOCATION_DECK and re:GetOwner()==c
end
function c14088859.reptg2(e,tp,eg,ep,ev,re,r,rp,chk)

Madolche Chateau (14001430) ​

Source: Scripts/c14001430.lua

lua
end
function c14001430.repfilter(c,tp)
	return c:IsControler(tp) and c:IsLocation(LOCATION_GRAVE) and c:GetDestination()==LOCATION_DECK and c:IsType(TYPE_MONSTER)
		and c:IsAbleToHand()
end

Tiki Soul (49514333) ​

Source: Scripts/c49514333.lua

lua
end
function c49514333.repfilter(c,tp)
	return c:IsLocation(LOCATION_MZONE) and c:IsFaceup() and c:GetDestination()==LOCATION_GRAVE and c:GetLeaveFieldDest()==0 and c:IsReason(REASON_DESTROY)
		and c:GetReasonPlayer()==1-tp and c:GetOwner()==tp and bit.band(c:GetOriginalType(),TYPE_TRAP)~=0 and c:IsCanTurnSet()
end