Skip to content

Card.GetPreviousTypeOnField ​

Signature ​

lua
Card.GetPreviousTypeOnField(Card c) -> int

Description ​

Returns the Type value recorded for c's previous on-field state.

Parameters ​

  • c Card

Returns ​

  • int

Source ​

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

Used By ​

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

  • Detected in 73 indexed script(s).
  • Search this function in the Script Explorer with Card.GetPreviousTypeOnField.
CardIDScriptDetected Calls
Fossil Fusion59419719Scripts/c59419719.lua1
Supreme King Dragon Lightwurm41908872Scripts/c41908872.lua1
Performapal Celestial Magician58092907Scripts/c58092907.lua1
Ursarctic Quint Charge15758127Scripts/c15758127.lua1
Despia, Theater of the Branded99543666Scripts/c99543666.lua1
Anubis the Last Judge60411677Scripts/c60411677.lua1
Chevreuil, Hunting Scout of the Deep Forest13023431Scripts/c13023431.lua1
World Legacy Collapse36197902Scripts/c36197902.lua1
Pendulum Witch43502497Scripts/c43502497.lua1
Salamangreat Zebroid X44161893Scripts/c44161893.lua1
Odd-Eyes Lancer Dragon83347294Scripts/c83347294.lua1
Gray Layer18616294Scripts/c18616294.lua1
Gussari @Ignister55762976Scripts/c55762976.lua1
Peaceful Planet Calarium82460246Scripts/c82460246.lua1
Evil HERO Inferno Wing - Backfire59893882Scripts/c59893882.lua1
Grenosaurus Giga-Cannon34481518Scripts/c34481518.lua1
Synchro Overtop653675Scripts/c653675.lua1
Valiant Shark Lancer23672629Scripts/c23672629.lua1
Aluber the Jester of Despia62962630Scripts/c62962630.lua1
Sunvine Thrasher91557476Scripts/c91557476.lua1
Tenyi Spirit - Shthana24557335Scripts/c24557335.lua1
World Legacy - "World Ark"42388271Scripts/c42388271.lua1
Princess Cologne75574498Scripts/c75574498.lua1
Voloferniges, the Darkest Dragon Doomrider38694052Scripts/c38694052.lua1
...and 49 more

Script Examples ​

Fossil Fusion (59419719) ​

Source: Scripts/c59419719.lua

lua
end
function c59419719.cfilter(c,tp)
	return c:IsPreviousSetCard(0x149) and c:GetPreviousTypeOnField()&TYPE_FUSION~=0
		and c:IsReason(REASON_BATTLE+REASON_EFFECT) and c:IsPreviousControler(tp) and c:IsPreviousLocation(LOCATION_MZONE)
end

Supreme King Dragon Lightwurm (41908872) ​

Source: Scripts/c41908872.lua

lua
end
function c41908872.thfilter2(c,tp)
	return c:IsReason(REASON_BATTLE+REASON_EFFECT) and bit.band(c:GetPreviousTypeOnField(),TYPE_PENDULUM)~=0
		and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousControler(tp) and c:IsPreviousPosition(POS_FACEUP)
end

Performapal Celestial Magician (58092907) ​

Source: Scripts/c58092907.lua

lua
	return (c:IsReason(REASON_BATTLE) or (c:IsReason(REASON_EFFECT) and rp==1-tp)) and c:IsPreviousLocation(LOCATION_MZONE)
		and c:IsPreviousControler(tp) and c:IsSummonLocation(LOCATION_EXTRA)
		and bit.band(c:GetPreviousTypeOnField(),TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ)~=0 and c:IsPreviousPosition(POS_FACEUP)
end
function c58092907.spcon(e,tp,eg,ep,ev,re,r,rp)