Commit f4adc94e authored by Tang Xinwei's avatar Tang Xinwei Committed by GitHub

Merge pull request #11 from mallu11/patch-7

Patch 7
parents 5d981ee8 f212b788
......@@ -29,7 +29,7 @@ function c71525232.condition(e,tp,eg,ep,ev,re,r,rp)
end
function c71525232.damfilter(c)
if c:IsFaceup() then
return c:GetAttack()
return math.max(c:GetTextAttack(),0)
else return 0 end
end
function c71525232.target(e,tp,eg,ep,ev,re,r,rp,chk)
......@@ -37,12 +37,12 @@ function c71525232.target(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_MZONE,LOCATION_MZONE,e:GetHandler())
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
local mg,atk=g:GetMaxGroup(c71525232.damfilter)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,atk)
if atk>0 then
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,atk)
end
end
function c71525232.filter(c)
if c:IsPreviousPosition(POS_FACEUP) then
return c:GetPreviousAttackOnField()
else return 0 end
return math.max(c:GetTextAttack(),0)
end
function c71525232.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
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