Commit f212b788 authored by mallu11's avatar mallu11 Committed by GitHub

fix

parent 3b62312f
...@@ -29,7 +29,7 @@ function c71525232.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -29,7 +29,7 @@ function c71525232.condition(e,tp,eg,ep,ev,re,r,rp)
end end
function c71525232.damfilter(c) function c71525232.damfilter(c)
if c:IsFaceup() then if c:IsFaceup() then
return math.max(c:GetTextAttack(),0) return math.max(c:GetTextAttack(),0)
else return 0 end else return 0 end
end end
function c71525232.target(e,tp,eg,ep,ev,re,r,rp,chk) function c71525232.target(e,tp,eg,ep,ev,re,r,rp,chk)
...@@ -41,12 +41,15 @@ function c71525232.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -41,12 +41,15 @@ function c71525232.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,atk) Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,atk)
end end
end end
function c71525232.filter(c)
return math.max(c:GetTextAttack(),0)
end
function c71525232.operation(e,tp,eg,ep,ev,re,r,rp) function c71525232.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local g=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_MZONE,LOCATION_MZONE,aux.ExceptThisCard(e)) local g=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_MZONE,LOCATION_MZONE,aux.ExceptThisCard(e))
if g:GetCount()>0 and Duel.Destroy(g,REASON_EFFECT)~=0 then if g:GetCount()>0 and Duel.Destroy(g,REASON_EFFECT)~=0 then
local og=Duel.GetOperatedGroup() local og=Duel.GetOperatedGroup()
local mg,atk=og:GetMaxGroup(math.max(Card.GetTextAttack,0)) local mg,atk=og:GetMaxGroup(c71525232.filter)
local dam=Duel.Damage(1-tp,atk,REASON_EFFECT) local dam=Duel.Damage(1-tp,atk,REASON_EFFECT)
if c:IsFaceup() and c:IsRelateToEffect(e) then if c:IsFaceup() and c:IsRelateToEffect(e) then
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
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