Card.IsPreviousLocation
Signature
lua
Card.IsPreviousLocation(Card c, int location) -> boolDescription
Checks whether c's previous location included location.
Parameters
cCardlocationint
Returns
bool
Source
D:\Programs\GitHub\ygopro-core\libcard.cpp:3666
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 1051 indexed script(s).
- Search this function in the Script Explorer with
Card.IsPreviousLocation.
Script Examples
Astrograph Sorcerer, the Starfrost Magician (48171151)
Source: Scripts/c48171151.lua
lua
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)
end
function s.spcon1(e,tp,eg,ep,ev,re,r,rp)Astrograph Sorcerer (76794549)
Source: Scripts/c76794549.lua
lua
function c76794549.spcfilter(c,tp)
return c:IsReason(REASON_BATTLE+REASON_EFFECT)
and c:IsPreviousControler(tp) and c:IsPreviousLocation(LOCATION_ONFIELD)
end
function c76794549.regcon(e,tp,eg,ep,ev,re,r,rp)Mementotlan Fusion (66518509)
Source: Scripts/c66518509.lua
lua
s.fusion_effect=true
function s.spcfilter(c)
return c:IsReason(REASON_EFFECT) and (c:IsType(TYPE_MONSTER) or c:IsPreviousLocation(LOCATION_MZONE))
and not c:IsPreviousLocation(LOCATION_SZONE)
end