Skip to content

Group.AddCard ​

Signature ​

lua
Group.AddCard(Group g, Card c) -> void

Description ​

Adds c to g if g is mutable.

Parameters ​

  • g Group
  • c Card

Source ​

  • D:\Programs\GitHub\ygopro-core\libgroup.cpp:906

Used By ​

Generated from the local Scripts/ folder and cards.cdb.

  • Detected in 344 indexed script(s).
  • Search this function in the Script Explorer with Group.AddCard.
CardIDScriptDetected Calls
Levia-Dragoon - Daedalus78579058Scripts/c78579058.lua2
Azure Ocean Dragon Lord - Neo-Daedalus Rage41570943Scripts/c41570943.lua2
Astrograph Sorcerer76794549Scripts/c76794549.lua1
Goyo Emperor59255742Scripts/c59255742.lua1
Accel Synchro Stardust Dragon30983281Scripts/c30983281.lua2
Ashtraja Susanoo17020474Scripts/c17020474.lua1
Prank-Kids Weather Washer44509529Scripts/c44509529.lua1
Predaplant Bal Teah66787942Scripts/c66787942.lua1
PSY-Framelord Omega74586817Scripts/c74586817.lua2
Nekroz Kaleidoscope51124303Scripts/c51124303.lua1
Enneacraft - Atil.SPIA71801447Scripts/c71801447.lua3
Flower Cardian Peony with Butterfly57261568Scripts/c57261568.lua1
Ultimate Crystal Rainbow Dragon Overdrive84544192Scripts/c84544192.lua1
Ursarctic Polar Star62714453Scripts/c62714453.lua1
Ashened to Endlessness34813443Scripts/c34813443.lua1
PSY-Framelord Zeta37192109Scripts/c37192109.lua1
Chronograph Sorcerer12289247Scripts/c12289247.lua1
Rescue Hamster50485594Scripts/c50485594.lua1
Super Soldier Ritual14094090Scripts/c14094090.lua1
Flower Cardian Willow with Calligrapher89818984Scripts/c89818984.lua1
Prank-Kids Rocket Ride18514525Scripts/c18514525.lua1
Jupredo the Shademachine Power Patron43871165Scripts/c43871165.lua2
Chaos Magical Hats2372506Scripts/c2372506.lua1
Gishki Nekromirror36982581Scripts/c36982581.lua1
...and 320 more

Script Examples ​

Levia-Dragoon - Daedalus (78579058) ​

Source: Scripts/c78579058.lua

lua
				if lmat~=nil then
					if not s.LConditionFilter(lmat,f,c,e) then return false end
					mg:AddCard(lmat)
				end
				local fg=Duel.GetMustMaterial(tp,EFFECT_MUST_BE_LMATERIAL)

Azure Ocean Dragon Lord - Neo-Daedalus Rage (41570943) ​

Source: Scripts/c41570943.lua

lua
				if lmat~=nil then
					if not s.LConditionFilter(lmat,f,c,e) then return false end
					mg:AddCard(lmat)
				end
				local fg=Duel.GetMustMaterial(tp,EFFECT_MUST_BE_LMATERIAL)

Astrograph Sorcerer (76794549) ​

Source: Scripts/c76794549.lua

lua
	Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
	local sg=mg:SelectSubGroupEach(tp,c76794549.hnchecks,false,c76794549.hngoal,e,tp,c)
	sg:AddCard(c)
	Duel.Remove(sg,POS_FACEUP,REASON_COST)
end