Commit 3de8904f authored by Amiya's avatar Amiya

修复

parent 04ebb27e
Pipeline #26595 passed with stages
in 1 minute and 9 seconds
...@@ -66,7 +66,7 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -66,7 +66,7 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp)
end end
function s.immval(e,re) function s.immval(e,re)
local qc=e:GetHandler():GetEquipTarget() local qc=e:GetHandler():GetEquipTarget()
return qc and qc:IsCode(70902743) and re:IsActivated() and re:GetOwnerPlayer()~=e:GetHandlerPlayer() return qc and qc:IsCode(70902743) and re:IsActivated() and e:GetHandlerPlayer()~=re:GetOwnerPlayer()
end end
function s.atkfilter(c,atk) function s.atkfilter(c,atk)
return c:IsFaceup() and c:GetAttack()~=atk return c:IsFaceup() and c:GetAttack()~=atk
......
...@@ -127,7 +127,7 @@ function s.atkcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -127,7 +127,7 @@ function s.atkcon(e,tp,eg,ep,ev,re,r,rp)
end end
function s.atktg(e,tp,eg,ep,ev,re,r,rp,chk) function s.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:IsAttackAbove(500) end if chk==0 then return c:IsAttackAbove(500) and c:IsDefenseAbove(500) end
end end
function s.atkop(e,tp,eg,ep,ev,re,r,rp) function s.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -125,8 +125,9 @@ function s.atkfilter(c) ...@@ -125,8 +125,9 @@ function s.atkfilter(c)
return c:IsFaceup() and c:IsPosition(POS_ATTACK) return c:IsFaceup() and c:IsPosition(POS_ATTACK)
end end
function s.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function s.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler()
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and s.atkfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and s.atkfilter(chkc) end
if chk==0 then return Duel.IsExistingTarget(s.atkfilter,tp,0,LOCATION_MZONE,1,nil) end if chk==0 then return c:IsAttackAbove(500) and c:IsDefenseAbove(500) Duel.IsExistingTarget(s.atkfilter,tp,0,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,s.atkfilter,tp,0,LOCATION_MZONE,1,1,nil) Duel.SelectTarget(tp,s.atkfilter,tp,0,LOCATION_MZONE,1,1,nil)
end end
......
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