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