Card.IsDefenseBelow
Signature
lua
Card.IsDefenseBelow(Card c, int def) -> boolDescription
Checks whether c has known current DEF less than or equal to def. Link Monsters and non-monsters return false, and unknown or negative DEF also returns false.
Parameters
cCarddefint
Returns
bool
Source
D:\Programs\GitHub\ygopro-core\libcard.cpp:3675
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 46 indexed script(s).
- Search this function in the Script Explorer with
Card.IsDefenseBelow.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| D/D/D Super Doom King Bright Armageddon | 72402069 | Scripts/c72402069.lua | 1 |
| Boss on Parade | 4909946 | Scripts/c4909946.lua | 1 |
| Wynn the Wind Channeler | 86395581 | Scripts/c86395581.lua | 1 |
| Aussa the Earth Charmer, Immovable | 97661969 | Scripts/c97661969.lua | 1 |
| Eria the Water Charmer, Gentle | 73309655 | Scripts/c73309655.lua | 1 |
| Dharc the Dark Charmer, Gloomy | 8264361 | Scripts/c8264361.lua | 1 |
| Hiita the Fire Charmer, Ablaze | 48815792 | Scripts/c48815792.lua | 1 |
| Wynn the Wind Charmer, Verdant | 30674956 | Scripts/c30674956.lua | 1 |
| Ace★Spades Speculation | 10796448 | Scripts/c10796448.lua | 1 |
| Lyna the Light Charmer, Lustrous | 9839945 | Scripts/c9839945.lua | 1 |
| Blackwing - Silverwind the Ascendant | 33236860 | Scripts/c33236860.lua | 2 |
| Full Force Virus | 4931121 | Scripts/c4931121.lua | 2 |
| Number 84: Pain Gainer | 26556950 | Scripts/c26556950.lua | 1 |
| Vengeful Witch | 66100116 | Scripts/c66100116.lua | 1 |
| Neo Flamvell Lady | 816427 | Scripts/c816427.lua | 1 |
| Performapal Call | 22765132 | Scripts/c22765132.lua | 1 |
| Curse of the Ancient Turtle | 94749594 | Scripts/c94749594.lua | 1 |
| Witch of the Black Forest | 78010363 | Scripts/c78010363.lua | 1 |
| Gusto Thunbolt | 28066831 | Scripts/c28066831.lua | 1 |
| Makiu, the Magical Mist | 27827272 | Scripts/c27827272.lua | 1 |
| Brotherhood of the Fire Fist - Spirit | 1662004 | Scripts/c1662004.lua | 1 |
| Dragon's Bind | 16278116 | Scripts/c16278116.lua | 1 |
| Whirlwind of Gusto | 91822647 | Scripts/c91822647.lua | 1 |
| Throwstone Unit | 76075810 | Scripts/c76075810.lua | 1 |
| ...and 22 more |
Script Examples
D/D/D Super Doom King Bright Armageddon (72402069)
Source: Scripts/c72402069.lua
lua
end
function c72402069.desfilter2(c,atk)
return c:IsFaceup() and c:IsDefenseBelow(atk)
end
function c72402069.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)Boss on Parade (4909946)
Source: Scripts/c4909946.lua
lua
end
function s.spfilter(c,e,tp,ec)
return c:IsAttack(1200) and c:IsDefenseBelow(1000) and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsRace(RACE_MACHINE)
and (Duel.GetMZoneCount(tp,ec)>0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false)Wynn the Wind Channeler (86395581)
Source: Scripts/c86395581.lua
lua
end
function c86395581.srfilter(c)
return c:IsAttribute(ATTRIBUTE_WIND) and c:IsDefenseBelow(1500) and not c:IsCode(86395581) and c:IsAbleToHand()
end
function c86395581.srcost(e,tp,eg,ep,ev,re,r,rp,chk)