Skip to content

Card.GetPreviousDefenseOnField ​

Signature ​

lua
Card.GetPreviousDefenseOnField(Card c) -> int

Description ​

Returns the DEF value c had while it was previously on the field.

Parameters ​

  • c Card

Returns ​

  • int

Source ​

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

Used By ​

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

  • Detected in 2 indexed script(s).
  • Search this function in the Script Explorer with Card.GetPreviousDefenseOnField.
CardIDScriptDetected Calls
D/D Count Surveyor5997110Scripts/c5997110.lua1
Ecole de Zone60514625Scripts/c60514625.lua1

Script Examples ​

D/D Count Surveyor (5997110) ​

Source: Scripts/c5997110.lua

lua
			local rg=Duel.GetOperatedGroup()
			local atk=rg:GetSum(Card.GetPreviousAttackOnField)
			local def=rg:GetSum(Card.GetPreviousDefenseOnField)
			local tc=sg:GetFirst()
			local e1=Effect.CreateEffect(e:GetHandler())

Ecole de Zone (60514625) ​

Source: Scripts/c60514625.lua

lua
		and Duel.IsPlayerCanSpecialSummonMonster(p,60514626,0,TYPES_TOKEN_MONSTER,-2,-2,1,RACE_SPELLCASTER,ATTRIBUTE_DARK) then
		local atk=tc:GetPreviousAttackOnField()
		local def=tc:GetPreviousDefenseOnField()
		local token=Duel.CreateToken(tp,60514626)
		if Duel.SpecialSummonStep(token,0,p,p,false,false,POS_FACEUP) then