Skip to content

Card.IsPreviousPosition ​

Signature ​

lua
Card.IsPreviousPosition(Card c, int pos) -> bool

Description ​

Checks whether c's previous position included pos.

Parameters ​

  • c Card
  • pos int

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.
CardIDScriptDetected Calls
Astrograph Sorcerer, the Starfrost Magician48171151Scripts/c48171151.lua1
Pendulum Evolution55795155Scripts/c55795155.lua1
Goyo Emperor59255742Scripts/c59255742.lua1
Aiwass, Divine Spirit of the Law84288367Scripts/c84288367.lua1
Teleport Fusion36494597Scripts/c36494597.lua1
D/D/D/D Super-Dimensional Sovereign Emperor Zero Paradox97417863Scripts/c97417863.lua1
Kewl Tune Crackle39576656Scripts/c39576656.lua1
Stars Align Above the Shrine15306543Scripts/c15306543.lua1
D/D Extra Surveyor74387963Scripts/c74387963.lua1
Flowering Etoile the Melodious Magnificat83793721Scripts/c83793721.lua1
Supreme King Dragon Lightwurm41908872Scripts/c41908872.lua1
Black Dragon Ninja56562619Scripts/c56562619.lua1
Performapal Celestial Magician58092907Scripts/c58092907.lua1
Dragon Master Magia12381100Scripts/c12381100.lua1
Ursarctic Quint Charge15758127Scripts/c15758127.lua1
Abyss-steam63941169Scripts/c63941169.lua1
Despia, Theater of the Branded99543666Scripts/c99543666.lua1
Gunkan Sushipyard Seaside Supper Spot62200831Scripts/c62200831.lua1
Angelechy Problem17782288Scripts/c17782288.lua1
Synchro Panic83962752Scripts/c83962752.lua1
Miracle Synchro Fusion36484016Scripts/c36484016.lua1
Melffy Pinny34800281Scripts/c34800281.lua1
World Legacy Collapse36197902Scripts/c36197902.lua1
Salamangreat Raging Phoenix57134592Scripts/c57134592.lua1
...and 421 more

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)
end

Pendulum 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)