Card.IsDefenseAbove
Signature
lua
Card.IsDefenseAbove(Card c, int def) -> boolDescription
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
cCarddefint
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.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Dark End Evaporation Dragon | 62002838 | Scripts/c62002838.lua | 2 |
| Light End Sublimation Dragon | 35614780 | Scripts/c35614780.lua | 2 |
| Amaze Attraction Wonder Wheel | 93473606 | Scripts/c93473606.lua | 1 |
| Battlewasp - Hama the Conquering Bow | 80949182 | Scripts/c80949182.lua | 1 |
| Subterror Final Battle | 74640994 | Scripts/c74640994.lua | 1 |
| Ancient Gear Ballista | 10547580 | Scripts/c10547580.lua | 1 |
| Number 3: Cicada King | 4997565 | Scripts/c4997565.lua | 1 |
| Galaxy Brave | 55168550 | Scripts/c55168550.lua | 1 |
| Psychic Commander | 21454943 | Scripts/c21454943.lua | 1 |
| Sacred Scrolls of the Gizmek Legend | 24793135 | Scripts/c24793135.lua | 1 |
| Mementotlan Cranium Burst | 79600447 | Scripts/c79600447.lua | 2 |
| Alice, Lady of Lament | 14504454 | Scripts/c14504454.lua | 1 |
| Rise to Full Height | 19254117 | Scripts/c19254117.lua | 1 |
| Icejade Creation Kingfisher | 66749546 | Scripts/c66749546.lua | 1 |
| Leo Wizard the Dark Fiend | 55423549 | Scripts/c55423549.lua | 1 |
| Ultimate Great Insect | 87804747 | Scripts/c87804747.lua | 1 |
| Pig Iron vs. Pen Peg | 46497537 | Scripts/c46497537.lua | 2 |
| Full Force Virus | 4931121 | Scripts/c4931121.lua | 1 |
| Ahrima, the Wicked Warden | 86377375 | Scripts/c86377375.lua | 1 |
| Bark of Dark Ruler | 41925941 | Scripts/c41925941.lua | 1 |
| Raidraptor - Pain Lanius | 46589034 | Scripts/c46589034.lua | 1 |
| Performage Mirror Conductor | 71578874 | Scripts/c71578874.lua | 2 |
| Performapal Turn Toad | 4239451 | Scripts/c4239451.lua | 4 |
| Embrace of the Tistina | 59069885 | Scripts/c59069885.lua | 1 |
| ...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)