Commit 8ce5f4dd authored by POLYMER's avatar POLYMER

fix

parent 6e232437
...@@ -111,17 +111,18 @@ function c60151125.disop(e,tp,eg,ep,ev,re,r,rp) ...@@ -111,17 +111,18 @@ function c60151125.disop(e,tp,eg,ep,ev,re,r,rp)
if res==1 then if res==1 then
local rc=re:GetHandler() local rc=re:GetHandler()
Duel.NegateEffect(ev) Duel.NegateEffect(ev)
if rc:IsRelateToEffect(re) and not rc:IsImmuneToEffect(e) then if not rc:IsImmuneToEffect(e) then
if rc:IsType(TYPE_MONSTER) then if rc:IsType(TYPE_XYZ) then
local og=rc:GetOverlayGroup() local og=rc:GetOverlayGroup()
if og:GetCount()>0 then if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE) Duel.SendtoGrave(og,REASON_RULE)
end end
Duel.Overlay(e:GetHandler(),Group.FromCards(rc)) Duel.Overlay(e:GetHandler(),Group.FromCards(rc))
end elseif rc:IsType(TYPE_SPELL+TYPE_TRAP) then
if rc:IsType(TYPE_SPELL+TYPE_TRAP) then
rc:CancelToGrave() rc:CancelToGrave()
Duel.Overlay(e:GetHandler(),Group.FromCards(rc)) Duel.Overlay(e:GetHandler(),Group.FromCards(rc))
else
return false
end end
end end
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment