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) ...@@ -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 c:GetAttack() 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)
...@@ -37,12 +37,12 @@ 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()) local g=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_MZONE,LOCATION_MZONE,e:GetHandler())
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
local mg,atk=g:GetMaxGroup(c71525232.damfilter) 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 end
function c71525232.filter(c) function c71525232.filter(c)
if c:IsPreviousPosition(POS_FACEUP) then return math.max(c:GetTextAttack(),0)
return c:GetPreviousAttackOnField()
else return 0 end
end 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()
......
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