Card.IsAttackAbove
Signature
lua
Card.IsAttackAbove(Card c, int atk) -> boolDescription
Checks whether c is a monster or currently treated as one, and whether its current ATK is at least atk. Unlike Card.IsAttackBelow, this core does not add a separate guard for unknown ATK before comparing.
Parameters
cCard- Card whose current ATK is checked.atkint- Minimum ATK value accepted by the check.
Returns
bool- True if c is a monster or treated as one and its current ATK is at least atk.
Source
D:\Programs\GitHub\ygopro-core\libcard.cpp:3674
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 138 indexed script(s).
- Search this function in the Script Explorer with
Card.IsAttackAbove.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Favorite HERO Flame Wingman | 13243124 | Scripts/c13243124.lua | 1 |
| Ehther the Heavenly Monarch | 96570609 | Scripts/c96570609.lua | 1 |
| Dark End Evaporation Dragon | 62002838 | Scripts/c62002838.lua | 2 |
| Light End Sublimation Dragon | 35614780 | Scripts/c35614780.lua | 2 |
| Flame Swordsrealm | 73714736 | Scripts/c73714736.lua | 2 |
| Meteonis Drytron | 22398665 | Scripts/c22398665.lua | 2 |
| Union Activation | 38527680 | Scripts/c38527680.lua | 1 |
| Erebus the Underworld Monarch | 23064604 | Scripts/c23064604.lua | 1 |
| Galaxy-Eyes Photon Dragon | 93717133 | Scripts/c93717133.lua | 1 |
| Drytron Meteonis DA Draconids | 56863746 | Scripts/c56863746.lua | 1 |
| Galaxy-Eyes Photon Change Dragon | 54725177 | Scripts/c54725177.lua | 1 |
| Phara the Primordial Goddess | 82344137 | Scripts/c82344137.lua | 1 |
| Borrelcode Dragon | 67288539 | Scripts/c67288539.lua | 1 |
| Salamangreat Raging Phoenix | 57134592 | Scripts/c57134592.lua | 1 |
| Altergeist Memorygant | 23790299 | Scripts/c23790299.lua | 2 |
| Super Armored Robot Armed Black Iron "C" | 77754169 | Scripts/c77754169.lua | 1 |
| Heart of the Blue-Eyes | 54475145 | Scripts/c54475145.lua | 1 |
| Tragic Twin Twined Jewels | 81143465 | Scripts/c81143465.lua | 1 |
| Servant of Endymion | 92559258 | Scripts/c92559258.lua | 1 |
| TiSolfachord Beautia | 54387923 | Scripts/c54387923.lua | 1 |
| Drytron Meteonis Draconids | 69815951 | Scripts/c69815951.lua | 1 |
| Drytron Meteonis Quadrantids | 95209656 | Scripts/c95209656.lua | 1 |
| Eidos the Underworld Monarch | 31596518 | Scripts/c31596518.lua | 1 |
| Rasterliger | 88000953 | Scripts/c88000953.lua | 1 |
| ...and 114 more |
Script Examples
Favorite HERO Flame Wingman (13243124)
Source: Scripts/c13243124.lua
lua
local c=e:GetHandler()
local bc=c:GetBattleTarget()
return bc and bc:IsFaceup() and bc:IsAttackAbove(2200)
end
function s.atktg(e,tp,eg,ep,ev,re,r,rp,chk)Ehther the Heavenly Monarch (96570609)
Source: Scripts/c96570609.lua
lua
end
function c96570609.spfilter(c,e,tp)
return c:IsAttackAbove(2400) and c:IsDefense(1000) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c96570609.sptg(e,tp,eg,ep,ev,re,r,rp,chk)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)