Skip to content

Card.GetPreviousRaceOnField ​

Signature ​

lua
Card.GetPreviousRaceOnField(Card c) -> int

Description ​

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

Parameters ​

  • c Card

Returns ​

  • int

Source ​

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

Used By ​

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

  • Detected in 56 indexed script(s).
  • Search this function in the Script Explorer with Card.GetPreviousRaceOnField.
CardIDScriptDetected Calls
Teleport Fusion36494597Scripts/c36494597.lua1
Despia, Theater of the Branded99543666Scripts/c99543666.lua1
Chevreuil, Hunting Scout of the Deep Forest13023431Scripts/c13023431.lua1
Melffy Pinny34800281Scripts/c34800281.lua1
Arbitration of White57964143Scripts/c57964143.lua2
Scrap Garage91019775Scripts/c91019775.lua1
Armed Rebeellion21056275Scripts/c21056275.lua1
Grenosaurus Giga-Cannon34481518Scripts/c34481518.lua1
Sangen Furo55484152Scripts/c55484152.lua1
Desperado Barrel Dragon76728962Scripts/c76728962.lua1
Transcendosaurus Exaraptor56818742Scripts/c56818742.lua1
Celestial Knightlord Parshath48589580Scripts/c48589580.lua1
Ragnaraika Hunting Dance89824842Scripts/c89824842.lua1
Machina Citadel87074380Scripts/c87074380.lua1
Evil Lord - Zorc73320394Scripts/c73320394.lua1
Triamid Loading64576557Scripts/c64576557.lua1
House Dragonmaid41232647Scripts/c41232647.lua1
Salamangreat Fennec49094491Scripts/c49094491.lua1
Magikuriboh31699677Scripts/c31699677.lua1
Beetrooper Cruel Saturnas91300233Scripts/c91300233.lua1
Keeper of the Shrine66752837Scripts/c66752837.lua1
The World Tree5973663Scripts/c5973663.lua1
Two-for-One Repair Job44459942Scripts/c44459942.lua1
Machina Defense Perimeter13247801Scripts/c13247801.lua1
...and 32 more

Script Examples ​

Teleport Fusion (36494597) ​

Source: Scripts/c36494597.lua

lua
end
function s.cfilter(c,tp)
	return c:IsSummonLocation(LOCATION_EXTRA) and c:GetPreviousRaceOnField()&RACE_PSYCHO~=0 and c:IsReason(REASON_BATTLE+REASON_EFFECT)
		and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousControler(tp) and c:IsPreviousPosition(POS_FACEUP)
end

Despia, Theater of the Branded (99543666) ​

Source: Scripts/c99543666.lua

lua
function c99543666.cfilter(c,tp,rp)
	return c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousControler(tp)
		and c:GetPreviousRaceOnField()&RACE_FAIRY~=0 and c:GetPreviousTypeOnField()&TYPE_FUSION==0
		and (c:IsReason(REASON_BATTLE) or (rp==1-tp and c:IsReason(REASON_EFFECT)))
end

Chevreuil, Hunting Scout of the Deep Forest (13023431) ​

Source: Scripts/c13023431.lua

lua
	else
		return bc:GetPreviousPosition()&POS_FACEUP>0 and bc:GetPreviousLocation()&LOCATION_MZONE==LOCATION_MZONE and bc:IsPreviousControler(tp)
			and bc:GetPreviousTypeOnField()&TYPE_MONSTER==TYPE_MONSTER and c:GetPreviousRaceOnField()&RACE_WARRIOR==RACE_WARRIOR
			and bc:GetPreviousAttributeOnField()&ATTRIBUTE_EARTH==ATTRIBUTE_EARTH
	end