Skip to content

Card.GetPreviousAttributeOnField ​

Signature ​

lua
Card.GetPreviousAttributeOnField(Card c) -> int

Description ​

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

Parameters ​

  • c Card

Returns ​

  • int

Source ​

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

Used By ​

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

  • Detected in 26 indexed script(s).
  • Search this function in the Script Explorer with Card.GetPreviousAttributeOnField.
CardIDScriptDetected Calls
Stars Align Above the Shrine15306543Scripts/c15306543.lua1
Abyss-steam63941169Scripts/c63941169.lua1
Chevreuil, Hunting Scout of the Deep Forest13023431Scripts/c13023431.lua1
Salamangreat Raging Phoenix57134592Scripts/c57134592.lua1
Zaborg the Mega Monarch87602890Scripts/c87602890.lua1
Sangen Furo55484152Scripts/c55484152.lua1
Desperado Barrel Dragon76728962Scripts/c76728962.lua1
Valiant Shark Lancer23672629Scripts/c23672629.lua1
Aussa the Earth Channeler62803464Scripts/c62803464.lua1
Machina Citadel87074380Scripts/c87074380.lua1
Wynn the Wind Channeler86395581Scripts/c86395581.lua1
Two-for-One Repair Job44459942Scripts/c44459942.lua1
Darkest Diabolos, Lord of the Lair50383626Scripts/c50383626.lua1
Magmacho Dragon50951254Scripts/c50951254.lua1
Crusher Run88667504Scripts/c88667504.lua1
Exodia, the Legendary Defender5008836Scripts/c5008836.lua1
Infinitrack Road Roller5205146Scripts/c5205146.lua1
Cataclysmic Scorching Sunburner39505816Scripts/c39505816.lua1
Shinobird Power Spot9553721Scripts/c9553721.lua1
Cataclysmic Cryonic Coldo19420830Scripts/c19420830.lua1
Cataclysmic Crusted Calcifida9028399Scripts/c9028399.lua1
Prayers of the Voiceless Voice52472775Scripts/c52472775.lua1
Cataclysmic Circumpolar Chilblainia62850093Scripts/c62850093.lua1
Piwraithe the Ghost Pirate83682209Scripts/c83682209.lua1
...and 2 more

Script Examples ​

Stars Align Above the Shrine (15306543) ​

Source: Scripts/c15306543.lua

lua
end
function s.cfilter(c,tp)
	return c:IsPreviousPosition(POS_FACEUP) and bit.band(c:GetPreviousAttributeOnField(),ATTRIBUTE_WIND)~=0 and c:IsPreviousControler(tp)
		and c:IsPreviousLocation(LOCATION_MZONE) and c:IsControler(tp)
end

Abyss-steam (63941169) ​

Source: Scripts/c63941169.lua

lua
	return c:IsReason(REASON_BATTLE+REASON_EFFECT)
		and c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousControler(tp)
		and c:GetPreviousAttributeOnField()&ATTRIBUTE_WATER~=0
		and c:IsPreviousLocation(LOCATION_MZONE) and (se==nil or c:GetReasonEffect()~=se)
end

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

Source: Scripts/c13023431.lua

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