Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix & update Duel.Overlay for ギガンティック“チャンピオン”サルガス #1988

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions c10300821.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,6 @@ function c10300821.tgop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if c:IsRelateToChain() and tc:IsRelateToChain()
and tc:IsControler(1-tp) and not tc:IsImmuneToEffect(e) then
local og=tc:GetOverlayGroup()
if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE)
end
Duel.Overlay(c,tc)
end
end
Expand Down
4 changes: 0 additions & 4 deletions c10443957.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@ function c10443957.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) and not tc:IsImmuneToEffect(e) then
local og=tc:GetOverlayGroup()
if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE)
end
Duel.Overlay(c,Group.FromCards(tc))
end
end
Expand Down
4 changes: 0 additions & 4 deletions c12744567.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ function c12744567.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) and not tc:IsImmuneToEffect(e) then
local og=tc:GetOverlayGroup()
if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE)
end
Duel.Overlay(c,Group.FromCards(tc))
end
end
Expand Down
4 changes: 0 additions & 4 deletions c14602126.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ function c14602126.activate(e,tp,eg,ep,ev,re,r,rp)
local lc=tg:GetFirst()
if lc==tc then lc=tg:GetNext() end
if tc:IsRelateToEffect(e) and tc:IsControler(tp) and not tc:IsImmuneToEffect(e) and lc:IsRelateToEffect(e) and lc:IsControler(1-tp) and not lc:IsImmuneToEffect(e) then
local og=lc:GetOverlayGroup()
if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE)
end
Duel.Overlay(tc,Group.FromCards(lc))
end
end
4 changes: 0 additions & 4 deletions c1825445.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ function c1825445.mtop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL)
local g=Duel.SelectMatchingCard(tp,c1825445.filter2,tp,LOCATION_MZONE,0,1,1,tc,e)
if g:GetCount()>0 then
local og=g:GetFirst():GetOverlayGroup()
if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE)
end
Duel.Overlay(tc,g)
end
end
4 changes: 0 additions & 4 deletions c20424878.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ function c20424878.ovop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) and not c:IsImmuneToEffect(e) then
local og=c:GetOverlayGroup()
if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE)
end
Duel.Overlay(tc,Group.FromCards(c))
end
end
6 changes: 0 additions & 6 deletions c2665273.lua
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,6 @@ function c2665273.drop(e,tp,eg,ep,ev,re,r,rp)
end
if sg:GetCount()>0 then
Duel.BreakEffect()
for tc in aux.Next(sg) do
local og=tc:GetOverlayGroup()
if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE)
end
end
Duel.Overlay(c,sg)
end
end
Expand Down
4 changes: 0 additions & 4 deletions c29599813.lua
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,6 @@ function s.xop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) and not tc:IsImmuneToEffect(e) then
tc:CancelToGrave()
local og=tc:GetOverlayGroup()
if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE)
end
Duel.Overlay(c,Group.FromCards(tc))
end
end
4 changes: 0 additions & 4 deletions c29601381.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ function c29601381.ovop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) and not c:IsImmuneToEffect(e) then
local og=c:GetOverlayGroup()
if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE)
end
Duel.Overlay(tc,Group.FromCards(c))
end
end
Expand Down
4 changes: 0 additions & 4 deletions c30761649.lua
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@ function s.xyzop(e,tp,eg,ep,ev,re,r,rp)
local tc1=e:GetLabelObject()
local tc2=g:Filter(Card.IsControler,tc1,1-tp):GetFirst()
if tc1:IsType(TYPE_XYZ) and not tc1:IsImmuneToEffect(e) and tc2 and not tc2:IsImmuneToEffect(e) then
local og=tc2:GetOverlayGroup()
if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE)
end
Duel.Overlay(tc1,tc2)
end
end
4 changes: 0 additions & 4 deletions c32559361.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ function c32559361.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=c:GetBattleTarget()
if c:IsRelateToEffect(e) and c:IsFaceup() and tc:IsRelateToBattle() and not tc:IsImmuneToEffect(e) then
local og=tc:GetOverlayGroup()
if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE)
end
Duel.Overlay(c,Group.FromCards(tc))
end
end
Expand Down
4 changes: 0 additions & 4 deletions c34876719.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,6 @@ function c34876719.ovop(e,tp,eg,ep,ev,re,r,rp)
Duel.HintSelection(tg)
local tc=tg:GetFirst()
if not tc:IsImmuneToEffect(e) then
local og=tc:GetOverlayGroup()
if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE)
end
Duel.Overlay(c,tg)
end
end
Expand Down
4 changes: 0 additions & 4 deletions c46593546.lua
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,6 @@ function c46593546.ovlop(e,tp,eg,ep,ev,re,r,rp)
end
if result>0 and c:IsRelateToEffect(e)
and rc:IsRelateToEffect(re) and rc:IsControler(1-tp) and not rc:IsImmuneToEffect(e) then
local og=rc:GetOverlayGroup()
if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE)
end
Duel.Overlay(c,rc)
end
end
Expand Down
4 changes: 0 additions & 4 deletions c48739166.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ function c48739166.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) and not tc:IsImmuneToEffect(e) then
local og=tc:GetOverlayGroup()
if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE)
end
Duel.Overlay(c,Group.FromCards(tc))
end
end
Expand Down
4 changes: 0 additions & 4 deletions c55470553.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,6 @@ function c55470553.spop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if c:IsRelateToEffect(e) and Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP_DEFENSE)~=0
and tc:IsRelateToEffect(e) and not tc:IsImmuneToEffect(e) then
local og=tc:GetOverlayGroup()
if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE)
end
Duel.Overlay(c,Group.FromCards(tc))
end
end
4 changes: 0 additions & 4 deletions c56818977.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ function c56818977.ovop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) and not c:IsImmuneToEffect(e) then
local og=c:GetOverlayGroup()
if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE)
end
Duel.Overlay(tc,Group.FromCards(c))
end
end
4 changes: 0 additions & 4 deletions c67436768.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ function c67436768.ovop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) and not c:IsImmuneToEffect(e) then
local og=c:GetOverlayGroup()
if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE)
end
Duel.Overlay(tc,Group.FromCards(c))
end
end
4 changes: 0 additions & 4 deletions c67630394.lua
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,6 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp)
Duel.HintSelection(tg)
local tc=tg:GetFirst()
if not tc:IsImmuneToEffect(e) then
local og=tc:GetOverlayGroup()
if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE)
end
Duel.Overlay(c,tg)
end
end
Expand Down
4 changes: 0 additions & 4 deletions c68250822.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@ function c68250822.operation1(e,tp,eg,ep,ev,re,r,rp)
if #g==0 then return end
local tc2=g:GetFirst()
if not tc:IsImmuneToEffect(e) and not tc2:IsImmuneToEffect(e) then
local og=tc:GetOverlayGroup()
if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE)
end
Duel.Overlay(tc2,Group.FromCards(tc))
end
end
Expand Down
4 changes: 0 additions & 4 deletions c69073023.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ function c69073023.spop(e,tp,eg,ep,ev,re,r,rp)
if tc==hc then tc=g:GetNext() end
if hc:IsRelateToEffect(e) and Duel.SpecialSummon(hc,0,tp,tp,false,false,POS_FACEUP)>0 then
if tc:IsRelateToEffect(e) and not tc:IsImmuneToEffect(e) then
local og=tc:GetOverlayGroup()
if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE)
end
tc:CancelToGrave()
Duel.Overlay(hc,tc)
end
Expand Down
6 changes: 0 additions & 6 deletions c720147.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,6 @@ function c720147.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c720147.matfilter2),tp,LOCATION_HAND+LOCATION_MZONE+LOCATION_GRAVE,0,rg:GetCount(),rg:GetCount(),exg)
if g:GetCount()>0 then
for oc in aux.Next(g) do
local og=oc:GetOverlayGroup()
if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE)
end
end
Duel.Overlay(tc,g)
end
end
Expand Down
4 changes: 0 additions & 4 deletions c74615388.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,6 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
local tc1=xg:GetFirst()
while tc1 do
tc1:CancelToGrave()
local og=tc1:GetOverlayGroup()
if #og>0 then
Duel.SendtoGrave(og,REASON_RULE)
end
tc1=xg:GetNext()
end
Duel.Overlay(tc,xg)
Expand Down
4 changes: 0 additions & 4 deletions c76833149.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ function c76833149.ovop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,c76833149.ovfilter,tp,LOCATION_MZONE+LOCATION_HAND,0,1,1,c,e)
local tc=g:GetFirst()
if tc then
local og=tc:GetOverlayGroup()
if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE)
end
Duel.Overlay(c,tc)
end
end
Expand Down
4 changes: 0 additions & 4 deletions c83108603.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ function c83108603.matop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL)
local g=Duel.SelectMatchingCard(tp,c83108603.matfilter,tp,LOCATION_MZONE+LOCATION_HAND,0,1,1,tc,e)
if g:GetCount()>0 then
local mg=g:GetFirst():GetOverlayGroup()
if mg:GetCount()>0 then
Duel.SendtoGrave(mg,REASON_RULE)
end
Duel.Overlay(tc,g)
end
end
Expand Down
4 changes: 0 additions & 4 deletions c83203672.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ function c83203672.ovop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) and not c:IsImmuneToEffect(e) then
local og=c:GetOverlayGroup()
if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE)
end
Duel.Overlay(tc,Group.FromCards(c))
end
end
Expand Down
4 changes: 0 additions & 4 deletions c98918572.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ function c98918572.xyzop(e,tp,eg,ep,ev,re,r,rp)
g:RemoveCard(xc)
local tc=g:GetFirst()
if not tc:IsImmuneToEffect(e) then
local og=xc:GetOverlayGroup()
if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE)
end
Duel.Overlay(tc,Group.FromCards(xc))
end
end
Loading