Commit 4b793ab5 authored by mercury233's avatar mercury233 Committed by GitHub

fix 時の魔術師

parent d5640564
...@@ -32,7 +32,12 @@ function c71625222.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -32,7 +32,12 @@ function c71625222.desop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_MZONE,0,nil) local g=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_MZONE,0,nil)
Duel.Destroy(g,REASON_EFFECT) Duel.Destroy(g,REASON_EFFECT)
local dg=Duel.GetOperatedGroup() local dg=Duel.GetOperatedGroup()
local sum=dg:GetSum(Card.GetAttack) local sum=0
Duel.Damage(tp,sum/2,REASON_EFFECT) for c in aux.Next(dg) do
sum=sum+math.max(c:GetAttack(),0)
end
if sum>0 then
Duel.Damage(tp,sum/2,REASON_EFFECT)
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