Skip to content

Card.GetAttackAnnouncedCount ​

Signature ​

lua
Card.GetAttackAnnouncedCount(Card c) -> int

Description ​

Returns c's attack declaration count.

Parameters ​

  • c Card

Returns ​

  • int

Source ​

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

Guided Examples ​

Learn how to use this function in context:

Used By ​

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

  • Detected in 18 indexed script(s).
  • Search this function in the Script Explorer with Card.GetAttackAnnouncedCount.
CardIDScriptDetected Calls
Toon Black Luster Soldier28711704Scripts/c28711704.lua1
Blaze Cannon4059313Scripts/c4059313.lua1
Infernoid Patrulea89423971Scripts/c89423971.lua1
Infernoid Harmadik52038272Scripts/c52038272.lua1
Voloferniges, the Darkest Dragon Doomrider38694052Scripts/c38694052.lua1
Dinowrestler King T Wrextle77967790Scripts/c77967790.lua1
Black Luster Soldier - Envoy of the Beginning72989439Scripts/c72989439.lua1
Dillingerous Dragon23732205Scripts/c23732205.lua1
GMX - ALLOS56311997Scripts/c56311997.lua1
Protector Whelp of the Destruction Swordsman47158777Scripts/c47158777.lua1
Blue-Eyes Alternative Ultimate Dragon43228023Scripts/c43228023.lua1
Abyss Actor - Funky Comedian99634927Scripts/c99634927.lua1
Link Bumper67231737Scripts/c67231737.lua1
Arcana Force EX - The Dark Ruler69831560Scripts/c69831560.lua1
Combination Attack8964854Scripts/c8964854.lua2
Laval Judgment Lord14047624Scripts/c14047624.lua1
Savage Colosseum32391631Scripts/c32391631.lua1
Red Dragon Archfiend70902743Scripts/c70902743.lua1

Script Examples ​

Toon Black Luster Soldier (28711704) ​

Source: Scripts/c28711704.lua

lua
function c28711704.rmcost(e,tp,eg,ep,ev,re,r,rp,chk)
	local c=e:GetHandler()
	if chk==0 then return c:GetAttackAnnouncedCount()==0 end
	local e1=Effect.CreateEffect(c)
	e1:SetType(EFFECT_TYPE_SINGLE)

Blaze Cannon (4059313) ​

Source: Scripts/c4059313.lua

lua
end
function c4059313.atkfilter(c,tp)
	return c:GetAttackAnnouncedCount()==0 and c:GetTextAttack()>0 and (c:IsControler(tp) or c:IsFaceup())
end
function c4059313.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)

Infernoid Patrulea (89423971) ​

Source: Scripts/c89423971.lua

lua
function c89423971.descost(e,tp,eg,ep,ev,re,r,rp,chk)
	local c=e:GetHandler()
	if chk==0 then return c:GetAttackAnnouncedCount()==0 end
	local e1=Effect.CreateEffect(c)
	e1:SetType(EFFECT_TYPE_SINGLE)