Group.GetNext
Signature
lua
Group.GetNext(Group g) -> Card|nilDescription
Advances g's internal iterator and returns the next card, or nil when there are no more cards.
How To Use It
GetNext belongs to the GetFirst iteration pattern. It advances the same internal pointer and returns nil after the final card.
lua
for tc in aux.Next(g) do
-- aux.Next wraps GetFirst/GetNext
endWhen you only need the number of cards, use #g or g:GetCount() instead of iterating.
Parameters
gGroup
Returns
Card|nil
Source
D:\Programs\GitHub\ygopro-core\libgroup.cpp:908
Guided Examples
Learn how to use this function in context:
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 781 indexed script(s).
- Search this function in the Script Explorer with
Group.GetNext.
Script Examples
Pendulum Evolution (55795155)
Source: Scripts/c55795155.lua
lua
while tc do
Duel.RegisterFlagEffect(tc:GetSummonPlayer(),55795155,RESET_PHASE+PHASE_END,0,1)
tc=g:GetNext()
end
endAstrograph Sorcerer (76794549)
Source: Scripts/c76794549.lua
lua
tc:RegisterFlagEffect(76794549,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1)
end
tc=eg:GetNext()
end
endUltra Polymerization (76647978)
Source: Scripts/c76647978.lua
lua
sc:RegisterEffect(e4,true)
end
sc=mg:GetNext()
end
Duel.SpecialSummonComplete()