Skip to content

Card.IsAttackAbove ​

Signature ​

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

Description ​

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 ​

  • c Card - Card whose current ATK is checked.
  • atk int - 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.
CardIDScriptDetected Calls
Favorite HERO Flame Wingman13243124Scripts/c13243124.lua1
Ehther the Heavenly Monarch96570609Scripts/c96570609.lua1
Dark End Evaporation Dragon62002838Scripts/c62002838.lua2
Light End Sublimation Dragon35614780Scripts/c35614780.lua2
Flame Swordsrealm73714736Scripts/c73714736.lua2
Meteonis Drytron22398665Scripts/c22398665.lua2
Union Activation38527680Scripts/c38527680.lua1
Erebus the Underworld Monarch23064604Scripts/c23064604.lua1
Galaxy-Eyes Photon Dragon93717133Scripts/c93717133.lua1
Drytron Meteonis DA Draconids56863746Scripts/c56863746.lua1
Galaxy-Eyes Photon Change Dragon54725177Scripts/c54725177.lua1
Phara the Primordial Goddess82344137Scripts/c82344137.lua1
Borrelcode Dragon67288539Scripts/c67288539.lua1
Salamangreat Raging Phoenix57134592Scripts/c57134592.lua1
Altergeist Memorygant23790299Scripts/c23790299.lua2
Super Armored Robot Armed Black Iron "C"77754169Scripts/c77754169.lua1
Heart of the Blue-Eyes54475145Scripts/c54475145.lua1
Tragic Twin Twined Jewels81143465Scripts/c81143465.lua1
Servant of Endymion92559258Scripts/c92559258.lua1
TiSolfachord Beautia54387923Scripts/c54387923.lua1
Drytron Meteonis Draconids69815951Scripts/c69815951.lua1
Drytron Meteonis Quadrantids95209656Scripts/c95209656.lua1
Eidos the Underworld Monarch31596518Scripts/c31596518.lua1
Rasterliger88000953Scripts/c88000953.lua1
...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)