Card.GetBattledGroupCount
Signature
lua
Card.GetBattledGroupCount(Card c) -> intDescription
Returns the number of cards currently recorded in c's battled-cards set.
Parameters
cCard
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.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Ultimate Crystal Rainbow Dragon Overdrive | 84544192 | Scripts/c84544192.lua | 1 |
| Arrow of Regulus | 60439482 | Scripts/c60439482.lua | 1 |
| Timelord Progenitor Vorpgate | 67508932 | Scripts/c67508932.lua | 1 |
| Gladiator Beast Tamer Editor | 30864377 | Scripts/c30864377.lua | 1 |
| Heretical Phobos Covos | 76078185 | Scripts/c76078185.lua | 1 |
| Archfiend Black Skull Dragon | 45349196 | Scripts/c45349196.lua | 1 |
| Phantasm Spiral Wave | 1197847 | Scripts/c1197847.lua | 1 |
| Frightfur Kraken | 40636712 | Scripts/c40636712.lua | 1 |
| Hi-Five the Sky | 91677585 | Scripts/c91677585.lua | 1 |
| Turbo Booster | 60187739 | Scripts/c60187739.lua | 1 |
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)
endArrow 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)