Commit 5b4af510 authored by mercury233's avatar mercury233 Committed by GitHub

fix ファイナル・クロス

parent 85e4d03a
...@@ -39,15 +39,14 @@ function c35756798.checkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -39,15 +39,14 @@ function c35756798.checkop(e,tp,eg,ep,ev,re,r,rp)
end end
function c35756798.atkcon(e,tp,eg,ep,ev,re,r,rp) function c35756798.atkcon(e,tp,eg,ep,ev,re,r,rp)
local ct=Duel.GetFlagEffect(tp,35756798) local ct=Duel.GetFlagEffect(tp,35756798)
return Duel.GetTurnPlayer()==tp and ct>0 return Duel.GetTurnPlayer()==tp and aux.bpcon() and ct>0
end end
function c35756798.filter(c) function c35756798.filter(c)
return c:IsFaceup() and c:IsType(TYPE_SYNCHRO) and not c:IsHasEffect(EFFECT_EXTRA_ATTACK) return c:IsFaceup() and c:IsType(TYPE_SYNCHRO) and not c:IsHasEffect(EFFECT_EXTRA_ATTACK)
end end
function c35756798.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c35756798.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c35756798.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c35756798.filter(chkc) end
if chk==0 then return Duel.IsAbleToEnterBP() if chk==0 then return Duel.IsExistingTarget(c35756798.filter,tp,LOCATION_MZONE,0,1,nil) end
and Duel.IsExistingTarget(c35756798.filter,tp,LOCATION_MZONE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectTarget(tp,c35756798.filter,tp,LOCATION_MZONE,0,1,1,nil) local g=Duel.SelectTarget(tp,c35756798.filter,tp,LOCATION_MZONE,0,1,1,nil)
local tc=g:GetFirst() local tc=g:GetFirst()
......
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