Group.AddCard
Signature
lua
Group.AddCard(Group g, Card c) -> voidDescription
Adds c to g if g is mutable.
Parameters
gGroupcCard
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.
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