Skip to content

Group.Clone ​

Signature ​

lua
Group.Clone(Group g) -> Group

Description ​

Creates and returns a new Group containing the same cards as g.

Parameters ​

  • g Group

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.
CardIDScriptDetected Calls
Salamandra with Chain62091148Scripts/c62091148.lua1
Astrograph Sorcerer, the Starfrost Magician48171151Scripts/c48171151.lua1
Artmage Non-Finito74631897Scripts/c74631897.lua1
Lady's Dragonmaid48658295Scripts/c48658295.lua1
Eternal Favorite87532344Scripts/c87532344.lua2
Surprise Fusion35167375Scripts/c35167375.lua1
Spellbook of the Grand Circle11911336Scripts/c11911336.lua2
Ultra Polymerization76647978Scripts/c76647978.lua2
Melffy Playtime Surprise58036097Scripts/c58036097.lua1
Ashtraja Susanoo17020474Scripts/c17020474.lua1
Destiny HERO - Destro-Dogma25158975Scripts/c25158975.lua1
Yomagna the Fire Phantom17350692Scripts/c17350692.lua1
Fiendsmith's Sequence49867899Scripts/c49867899.lua1
D/D/D Alfred the Divine Sage King11852093Scripts/c11852093.lua1
Mementotlan Fusion66518509Scripts/c66518509.lua1
Favorite HERO Flame Wingman13243124Scripts/c13243124.lua1
Mixousia the Confounder80843006Scripts/c80843006.lua1
Gem-Knight Dispersion24220368Scripts/c24220368.lua1
Invoked Sorath43989315Scripts/c43989315.lua1
Ehther the Heavenly Monarch96570609Scripts/c96570609.lua1
Spirit Illusion71939275Scripts/c71939275.lua3
Lubellion the Searing Dragon70534340Scripts/c70534340.lua1
Destratification Dino Stratiae3841104Scripts/c3841104.lua1
Magnet Bonding65514302Scripts/c65514302.lua1
...and 2527 more

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)