Card.IsPreviousPosition
Signature
lua
Card.IsPreviousPosition(Card c, int pos) -> boolDescription
Checks whether c's previous position included pos.
Parameters
cCardposint
Returns
bool
Source
D:\Programs\GitHub\ygopro-core\libcard.cpp:3661
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 445 indexed script(s).
- Search this function in the Script Explorer with
Card.IsPreviousPosition.
Script Examples
Astrograph Sorcerer, the Starfrost Magician (48171151)
Source: Scripts/c48171151.lua
lua
end
function s.desfilter(c,tp)
return c:IsPreviousControler(tp) and c:IsPreviousPosition(POS_FACEUP) and c:IsReason(REASON_BATTLE+REASON_EFFECT)
and c:GetOriginalType()&TYPE_MONSTER~=0 and c:IsPreviousLocation(LOCATION_ONFIELD)
endPendulum Evolution (55795155)
Source: Scripts/c55795155.lua
lua
end
function c55795155.checkfilter(c)
return c:IsType(TYPE_PENDULUM) and c:IsPreviousPosition(POS_FACEDOWN) and c:IsSummonLocation(LOCATION_EXTRA)
end
function c55795155.checkop(e,tp,eg,ep,ev,re,r,rp)Goyo Emperor (59255742)
Source: Scripts/c59255742.lua
lua
function c59255742.ctcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:IsPreviousPosition(POS_FACEUP)
end
function c59255742.ctfilter(c)