Skip to content

Card.GetBattledGroupCount ​

Signature ​

lua
Card.GetBattledGroupCount(Card c) -> int

Description ​

Returns the number of cards currently recorded in c's battled-cards set.

Parameters ​

  • c Card

Returns ​

  • int

Source ​

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

Used By ​

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

  • Detected in 10 indexed script(s).
  • Search this function in the Script Explorer with Card.GetBattledGroupCount.
CardIDScriptDetected Calls
Ultimate Crystal Rainbow Dragon Overdrive84544192Scripts/c84544192.lua1
Arrow of Regulus60439482Scripts/c60439482.lua1
Timelord Progenitor Vorpgate67508932Scripts/c67508932.lua1
Gladiator Beast Tamer Editor30864377Scripts/c30864377.lua1
Heretical Phobos Covos76078185Scripts/c76078185.lua1
Archfiend Black Skull Dragon45349196Scripts/c45349196.lua1
Phantasm Spiral Wave1197847Scripts/c1197847.lua1
Frightfur Kraken40636712Scripts/c40636712.lua1
Hi-Five the Sky91677585Scripts/c91677585.lua1
Turbo Booster60187739Scripts/c60187739.lua1

Script Examples ​

Ultimate Crystal Rainbow Dragon Overdrive (84544192) ​

Source: Scripts/c84544192.lua

lua
function s.tdcost(e,tp,eg,ep,ev,re,r,rp,chk)
	local c=e:GetHandler()
	if chk==0 then return c:GetBattledGroupCount()==0 and c:IsReleasable() end
	Duel.Release(c,REASON_COST)
end

Arrow of Regulus (60439482) ​

Source: Scripts/c60439482.lua

lua
end
function s.desfilter(c)
	return c:GetBattledGroupCount()>0
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)

Timelord Progenitor Vorpgate (67508932) ​

Source: Scripts/c67508932.lua

lua
function c67508932.rmcond(e,tp,eg,ep,ev,re,r,rp)
	local c=e:GetHandler()
	return aux.dsercon(e,tp,eg,ep,ev,re,r,rp) and c:IsSummonLocation(LOCATION_EXTRA) and c:GetBattledGroupCount()>0
end
function c67508932.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)