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

errata and fix 破滅竜ガンドラX (#2289)

* errata and fix 破滅竜ガンドラX

* fix
parent 78e2d6bc
......@@ -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)
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