Group.Sub
Signature
lua
Group.Sub(Group g1, Group g2) -> voidDescription
Removes every card in g2 from g1. g1 is mutated unless it is read-only; g2 is not changed.
Parameters
g1Groupg2Group
Source
D:\Programs\GitHub\ygopro-core\libgroup.cpp:930
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 89 indexed script(s).
- Search this function in the Script Explorer with
Group.Sub.
Script Examples
Artmage Non-Finito (74631897)
Source: Scripts/c74631897.lua
lua
local g=e:GetLabelObject()
local dg=g:Filter(s.disfilter,nil)
g:Sub(dg)
Duel.SendtoGrave(dg,REASON_SPSUMMON+REASON_DISCARD)
Duel.Release(g,REASON_SPSUMMON)Ashtraja Susanoo (17020474)
Source: Scripts/c17020474.lua
lua
end
local tmg=tg:Clone()
tmg:Sub(selg)
local tc=tmg:SelectUnselect(selg,tp,finish,false,1,tg:GetCount())
if not tc thenD/D/D Alfred the Divine Sage King (11852093)
Source: Scripts/c11852093.lua
lua
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD)
pg=g:Select(tp,ct,ct,nil)
g:Sub(pg)
else
g=Group.CreateGroup()