Commit be0377f9 authored by nanahira's avatar nanahira

fix

parent 22895641
...@@ -61,9 +61,10 @@ function cm.initial_effect(c) ...@@ -61,9 +61,10 @@ function cm.initial_effect(c)
e1:SetCondition(function(e,tp,eg,ep,ev,re,r,rp) e1:SetCondition(function(e,tp,eg,ep,ev,re,r,rp)
local atks={} local atks={}
for p=0,1 do for p=0,1 do
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,0,nil) local g=Duel.GetMatchingGroup(Card.IsFaceup,p,LOCATION_MZONE,0,nil)
atks[p]=g:GetSum(Card.GetAttack) atks[p]=g:GetSum(Card.GetAttack)
end end
--Debug.Message(atks[1])
return atks[1-tp]>atks[tp] return atks[1-tp]>atks[tp]
end) end)
e1:SetTarget(function(e,tp,eg,ep,ev,re,r,rp,chk) e1:SetTarget(function(e,tp,eg,ep,ev,re,r,rp,chk)
......
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