Skip to content

Card.IsAttackBelow ​

Signature ​

lua
Card.IsAttackBelow(Card c, int atk) -> bool

Description ​

Checks whether c is a monster, or treated as one, whose current ATK is known and less than or equal to atk. Cards with unknown ATK return false because the core requires the current ATK to be at least 0.

Parameters ​

  • c Card - Card whose current ATK is checked.
  • atk int - Maximum ATK value accepted by the check.

Returns ​

  • bool - True if c is a monster or treated as one, has known ATK, and that ATK is at most atk.

Source ​

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

Used By ​

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

  • Detected in 174 indexed script(s).
  • Search this function in the Script Explorer with Card.IsAttackBelow.
CardIDScriptDetected Calls
Enneacraft - Asta.PIXEA28454232Scripts/c28454232.lua1
Enneacraft - Archa.TAIL81237046Scripts/c81237046.lua1
Enneacraft - Atil.SPIA71801447Scripts/c71801447.lua1
Enneacraft - Aiza.LEON82359538Scripts/c82359538.lua1
DoSolfachord Coolia80776622Scripts/c80776622.lua1
Enneacraft - Atori.MAR54842941Scripts/c54842941.lua1
Drytron Meteonis DA Draconids56863746Scripts/c56863746.lua1
Madolche Dessert51650038Scripts/c51650038.lua1
Helping Robo for Underwater Combat77856460Scripts/c77856460.lua1
Proxy F Magician12450071Scripts/c12450071.lua1
Number 93: Utopia Kaiser23187256Scripts/c23187256.lua1
Odd-Eyes Pendulum Dragon, Four Heavenly Dragons75787708Scripts/c75787708.lua1
Shade the Obscure77157846Scripts/c77157846.lua1
Performapal Corn33103459Scripts/c33103459.lua1
Supreme King Dragon Odd-Eyes96733134Scripts/c96733134.lua1
Armed Rebeellion21056275Scripts/c21056275.lua1
Seventh Eternity60158866Scripts/c60158866.lua1
Clockwork Knight41739381Scripts/c41739381.lua1
Assault Spirits87043568Scripts/c87043568.lua1
Xyz Double Back57836546Scripts/c57836546.lua1
Odd-Eyes Rebellion Xyz Dragon30095833Scripts/c30095833.lua1
Officiator of Doom Samuel76213610Scripts/c76213610.lua1
Sky Striker Ace - Azalea Temperance56741506Scripts/c56741506.lua1
Steel Star Regulator32986898Scripts/c32986898.lua1
...and 150 more

Script Examples ​

Enneacraft - Asta.PIXEA (28454232) ​

Source: Scripts/c28454232.lua

lua
end
function s.desfilter(c,atk)
	return c:IsFaceup() and c:IsAttackBelow(atk-1)
end
function s.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)

Enneacraft - Archa.TAIL (81237046) ​

Source: Scripts/c81237046.lua

lua
end
function s.desfilter(c,atk)
	return c:IsFaceup() and c:IsAttackBelow(atk-1)
end
function s.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)

Enneacraft - Atil.SPIA (71801447) ​

Source: Scripts/c71801447.lua

lua
end
function s.desfilter(c,atk)
	return c:IsFaceup() and c:IsAttackBelow(atk-1)
end
function s.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)