Skip to content

Card.IsPreviousLocation ​

Signature ​

lua
Card.IsPreviousLocation(Card c, int location) -> bool

Description ​

Checks whether c's previous location included location.

Parameters ​

  • c Card
  • location int

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.
CardIDScriptDetected Calls
Astrograph Sorcerer, the Starfrost Magician48171151Scripts/c48171151.lua1
Astrograph Sorcerer76794549Scripts/c76794549.lua1
Mementotlan Fusion66518509Scripts/c66518509.lua2
Favorite HERO Flame Wingman13243124Scripts/c13243124.lua1
Performage Cup Tricker6812770Scripts/c6812770.lua1
Aiwass, Divine Spirit of the Law84288367Scripts/c84288367.lua2
Teleport Fusion36494597Scripts/c36494597.lua1
D/D/D/D Dimensional King Arc Crisis71398055Scripts/c71398055.lua1
Odd-Eyes Arcray Dragon6218704Scripts/c6218704.lua1
Kewl Tune Crackle39576656Scripts/c39576656.lua2
Penetration Fusion8778267Scripts/c8778267.lua1
Starving Venemy Dragon93729065Scripts/c93729065.lua2
Chronograph Sorcerer12289247Scripts/c12289247.lua1
Cerynemesia, Mystical Beast of the Forest43632709Scripts/c43632709.lua1
Stars Align Above the Shrine15306543Scripts/c15306543.lua1
Mitsurugi Mirror49721684Scripts/c49721684.lua1
Chef de Nouvelles29251488Scripts/c29251488.lua1
D/D Extra Surveyor74387963Scripts/c74387963.lua1
Starving Venom Wing Dragon5148778Scripts/c5148778.lua1
Flowering Etoile the Melodious Magnificat83793721Scripts/c83793721.lua1
Fossil Fusion59419719Scripts/c59419719.lua1
Performapal Trump Girl42002073Scripts/c42002073.lua1
Supreme King Dragon Lightwurm41908872Scripts/c41908872.lua1
Hojo the Vaylantz Warrior88919365Scripts/c88919365.lua1
...and 1027 more

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