Commit 91a3963f authored by mallu11's avatar mallu11 Committed by GitHub
parent 23f1cc69
...@@ -30,17 +30,13 @@ end ...@@ -30,17 +30,13 @@ end
function c10365322.desop(e,tp,eg,ep,ev,re,r,rp) function c10365322.desop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
local c=e:GetHandler() local c=e:GetHandler()
if not tc:IsRelateToEffect(e) and not c:IsRelateToEffect(e) then return end if not tc:IsRelateToEffect(e) or not c:IsRelateToEffect(e) then return end
if not tc:IsRelateToEffect(e) then if not tc:IsControler(1-tp) then return end
Duel.Destroy(c,REASON_EFFECT) local dg=Group.FromCards(c,tc)
elseif not c:IsRelateToEffect(e) then if Duel.Destroy(dg,REASON_EFFECT)==2 and tc:IsLocation(LOCATION_GRAVE) and c:IsLocation(LOCATION_GRAVE) then
Duel.Destroy(tc,REASON_EFFECT) local d=tc:GetTextAttack()
else if d>0 then
local dg=Group.FromCards(c,tc)
if Duel.Destroy(dg,REASON_EFFECT)==2 and tc:IsLocation(LOCATION_GRAVE) and c:IsLocation(LOCATION_GRAVE) then
Duel.BreakEffect() Duel.BreakEffect()
local d=tc:GetAttack()
if d<0 then d=0 end
Duel.Damage(1-tp,d,REASON_EFFECT) Duel.Damage(1-tp,d,REASON_EFFECT)
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