Group.GetCount
Signature
lua
Group.GetCount(Group g) -> intDescription
Returns the number of cards in g.
Parameters
gGroup
Returns
int
Source
D:\Programs\GitHub\ygopro-core\libgroup.cpp:910
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 5817 indexed script(s).
- Search this function in the Script Explorer with
Group.GetCount.
Script Examples
Salamandra with Chain (62091148)
Source: Scripts/c62091148.lua
lua
sg2=Duel.GetMatchingGroup(s.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg3,mf,chkf)
end
if sg1:GetCount()>0 or (sg2~=nil and sg2:GetCount()>0) then
local sg=sg1:Clone()
if sg2 then sg:Merge(sg2) endAstrograph Sorcerer, the Starfrost Magician (48171151)
Source: Scripts/c48171151.lua
lua
sg2=Duel.GetMatchingGroup(s.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg3,mf,chkf)
end
if (sg1:GetCount()>0 or (sg2~=nil and sg2:GetCount()>0)) and Duel.SelectYesNo(tp,aux.Stringid(id,4)) then
Duel.BreakEffect()
local sg=sg1:Clone()Artmage Non-Finito (74631897)
Source: Scripts/c74631897.lua
lua
local rg=Duel.GetReleaseGroup(tp,true,REASON_SPSUMMON)
local mrg=rg:Filter(Card.IsHasEffect,nil,EFFECT_EXTRA_RELEASE)
if mrg:GetCount()>0 then
return mrg:Filter(s.spfilter,nil,tp,sc)
else