Skip to content

Card.IsDefenseAbove ​

Signature ​

lua
Card.IsDefenseAbove(Card c, int def) -> bool

Description ​

Checks whether c has current DEF greater than or equal to def. Link Monsters and cards that are not monsters or currently treated as monsters return false.

Parameters ​

  • c Card
  • def int

Returns ​

  • bool

Source ​

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

Used By ​

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

  • Detected in 52 indexed script(s).
  • Search this function in the Script Explorer with Card.IsDefenseAbove.
CardIDScriptDetected Calls
Dark End Evaporation Dragon62002838Scripts/c62002838.lua2
Light End Sublimation Dragon35614780Scripts/c35614780.lua2
Amaze Attraction Wonder Wheel93473606Scripts/c93473606.lua1
Battlewasp - Hama the Conquering Bow80949182Scripts/c80949182.lua1
Subterror Final Battle74640994Scripts/c74640994.lua1
Ancient Gear Ballista10547580Scripts/c10547580.lua1
Number 3: Cicada King4997565Scripts/c4997565.lua1
Galaxy Brave55168550Scripts/c55168550.lua1
Psychic Commander21454943Scripts/c21454943.lua1
Sacred Scrolls of the Gizmek Legend24793135Scripts/c24793135.lua1
Mementotlan Cranium Burst79600447Scripts/c79600447.lua2
Alice, Lady of Lament14504454Scripts/c14504454.lua1
Rise to Full Height19254117Scripts/c19254117.lua1
Icejade Creation Kingfisher66749546Scripts/c66749546.lua1
Leo Wizard the Dark Fiend55423549Scripts/c55423549.lua1
Ultimate Great Insect87804747Scripts/c87804747.lua1
Pig Iron vs. Pen Peg46497537Scripts/c46497537.lua2
Full Force Virus4931121Scripts/c4931121.lua1
Ahrima, the Wicked Warden86377375Scripts/c86377375.lua1
Bark of Dark Ruler41925941Scripts/c41925941.lua1
Raidraptor - Pain Lanius46589034Scripts/c46589034.lua1
Performage Mirror Conductor71578874Scripts/c71578874.lua2
Performapal Turn Toad4239451Scripts/c4239451.lua4
Embrace of the Tistina59069885Scripts/c59069885.lua1
...and 28 more

Script Examples ​

Dark End Evaporation Dragon (62002838) ​

Source: Scripts/c62002838.lua

lua
	local c=e:GetHandler()
	if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc~=c and s.atkfilter(chkc) end
	if chk==0 then return c:IsAttackAbove(500) and c:IsDefenseAbove(500) and Duel.IsExistingTarget(s.atkfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,c) end
	Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
	local tc=Duel.SelectTarget(tp,s.atkfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,c)

Light End Sublimation Dragon (35614780) ​

Source: Scripts/c35614780.lua

lua
function s.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
	local c=e:GetHandler()
	if chk==0 then return c:IsAttackAbove(500) and c:IsDefenseAbove(500) end
end
function s.atkop(e,tp,eg,ep,ev,re,r,rp)

Amaze Attraction Wonder Wheel (93473606) ​

Source: Scripts/c93473606.lua

lua
function c93473606.swtg(e,tp,eg,ep,ev,re,r,rp,chk)
	local ec=e:GetHandler():GetEquipTarget()
	if chk==0 then return ec and ec:IsDefenseAbove(0) end
end
function c93473606.swop(e,tp,eg,ep,ev,re,r,rp)