Card.GetAttack
Signature
lua
Card.GetAttack(Card c) -> intDescription
Returns c's current ATK, with unknown or negative ATK reported as 0.
Parameters
cCard
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.
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=nilSpirit 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)