Commit 4e737b67 authored by Amiya's avatar Amiya

终戒超兽-瓦尔德拉斯①的效果修复

parent c2da743a
...@@ -53,12 +53,16 @@ end ...@@ -53,12 +53,16 @@ end
function s.disop(e,tp,eg,ep,ev,re,r,rp) function s.disop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local g=Duel.GetFieldGroup(tp,LOCATION_ONFIELD,LOCATION_ONFIELD) local g=Duel.GetFieldGroup(tp,LOCATION_ONFIELD,LOCATION_ONFIELD)
if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) if Duel.NegateActivation(ev)
and g:GetCount()>0 and c:CheckRemoveOverlayCard(tp,1,REASON_EFFECT) and g:GetCount()>0 and c:CheckRemoveOverlayCard(tp,1,REASON_EFFECT)
and Duel.SelectYesNo(tp,aux.Stringid(id,3)) then and Duel.SelectYesNo(tp,aux.Stringid(id,3)) then
Duel.BreakEffect() Duel.BreakEffect()
if c:RemoveOverlayCard(tp,1,1,REASON_EFFECT) then if c:RemoveOverlayCard(tp,1,1,REASON_EFFECT)~=0 then
local g=Duel.GetFieldGroup(tp,LOCATION_ONFIELD,LOCATION_ONFIELD):Select(tp,1,1,nil) if re:GetHandler():IsRelateToEffect(re) then
g=Duel.GetFieldGroup(tp,LOCATION_ONFIELD,LOCATION_ONFIELD):Select(tp,1,1,re:GetHandler())
else
g=Duel.GetFieldGroup(tp,LOCATION_ONFIELD,LOCATION_ONFIELD):Select(tp,1,1,nil)
end
if #g>0 then if #g>0 then
Duel.BreakEffect() Duel.BreakEffect()
Duel.Destroy(g,REASON_EFFECT) Duel.Destroy(g,REASON_EFFECT)
......
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