Skip to content

Card.GetAttack ​

Signature ​

lua
Card.GetAttack(Card c) -> int

Description ​

Returns c's current ATK, with unknown or negative ATK reported as 0.

Parameters ​

  • c Card

Returns ​

  • int

Source ​

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

Guided Examples ​

Learn how to use this function in context:

Used By ​

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

  • Detected in 668 indexed script(s).
  • Search this function in the Script Explorer with Card.GetAttack.
CardIDScriptDetected Calls
Meteoroa Drytron24166324Scripts/c24166324.lua2
Spirit Illusion71939275Scripts/c71939275.lua5
Converging Wishes20007374Scripts/c20007374.lua2
D/D/D/D Super-Dimensional Sovereign Emperor Zero Paradox97417863Scripts/c97417863.lua1
Kewl Tune Crackle39576656Scripts/c39576656.lua1
Cerynemesia, Mystical Beast of the Forest43632709Scripts/c43632709.lua1
Earthbound Servant Geo Gremlin8690387Scripts/c8690387.lua1
Particle Fusion39261576Scripts/c39261576.lua1
Prank-Kids Rocket Ride18514525Scripts/c18514525.lua1
Vaylantz Genesis Grand Duke76075139Scripts/c76075139.lua2
Starving Venom Wing Dragon5148778Scripts/c5148778.lua2
Trirealm Rift Judgment65195679Scripts/c65195679.lua1
Duel Link Dragon, the Duel Dragon60025883Scripts/c60025883.lua1
Hunting Horn55421040Scripts/c55421040.lua1
Meteonis Drytron22398665Scripts/c22398665.lua2
Awakening of the Sacred Beasts53701259Scripts/c53701259.lua2
Union Activation38527680Scripts/c38527680.lua2
Black Garden71645242Scripts/c71645242.lua2
Theia, the Primal Being85687952Scripts/c85687952.lua1
All-Eyes Phantom Dragon70335319Scripts/c70335319.lua1
Number 4: Stealth Kragen67557908Scripts/c67557908.lua1
Arcana Force EX - The Light Ruler5861892Scripts/c5861892.lua1
Genex Ally Triforce52709508Scripts/c52709508.lua1
Amaze Attraction Wonder Wheel93473606Scripts/c93473606.lua1
...and 644 more

Script Examples ​

Meteoroa Drytron (24166324) ​

Source: Scripts/c24166324.lua

lua
		end
		Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
		aux.GCheckAdditional=s.RitualCheckAdditional(tc,tc:GetAttack(),"Greater")
		local mat=mg:SelectSubGroup(tp,s.RitualCheck,true,1,#mg,tp,tc,tc:GetAttack(),"Greater")
		aux.GCheckAdditional=nil

Spirit Illusion (71939275) ​

Source: Scripts/c71939275.lua

lua
	local tc=e:GetHandler():GetEquipTarget()
	if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
		and Duel.IsPlayerCanSpecialSummonMonster(tp,id+o,0,TYPES_TOKEN_MONSTER,tc:GetAttack(),0,5,tc:GetRace(),tc:GetAttribute()) end
	Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
	Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0)

Converging Wishes (20007374) ​

Source: Scripts/c20007374.lua

lua
end
function c20007374.atkfilter(c)
	return c20007374.cfilter(c) and c:GetAttack()>0
end
function c20007374.atkval(e,c)