Group.Clone
Signature
lua
Group.Clone(Group g) -> GroupDescription
Creates and returns a new Group containing the same cards as g.
Parameters
gGroup
Returns
Group
Source
D:\Programs\GitHub\ygopro-core\libgroup.cpp:903
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 2551 indexed script(s).
- Search this function in the Script Explorer with
Group.Clone.
Script Examples
Salamandra with Chain (62091148)
Source: Scripts/c62091148.lua
lua
end
if sg1:GetCount()>0 or (sg2~=nil and sg2:GetCount()>0) then
local sg=sg1:Clone()
if sg2 then sg:Merge(sg2) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)Astrograph Sorcerer, the Starfrost Magician (48171151)
Source: Scripts/c48171151.lua
lua
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()
if sg2 then sg:Merge(sg2) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)Artmage Non-Finito (74631897)
Source: Scripts/c74631897.lua
lua
end
if #sg1>0 or (sg2~=nil and #sg2>0) then
local sg=sg1:Clone()
if sg2 then sg:Merge(sg2) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)