Commit 4f0930c6 authored by fallenstardust's avatar fallenstardust

fix LEDE-JP040 script

parent c2b44070
...@@ -50,8 +50,8 @@ function c101204040.initial_effect(c) ...@@ -50,8 +50,8 @@ function c101204040.initial_effect(c)
end end
end end
function c101204040.checkop(e,tp,eg,ep,ev,re,r,rp) function c101204040.checkop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterFlagEffect(tp,c101204040,RESET_PHASE+PHASE_END,0,1) Duel.RegisterFlagEffect(tp,101204040,RESET_PHASE+PHASE_END,0,1)
Duel.RegisterFlagEffect(1-tp,c101204040,RESET_PHASE+PHASE_END,0,1) Duel.RegisterFlagEffect(1-tp,101204040,RESET_PHASE+PHASE_END,0,1)
end end
function c101204040.poscon(e,tp,eg,ep,ev,re,r,rp) function c101204040.poscon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO) return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
...@@ -74,7 +74,8 @@ function c101204040.posop(e,tp,eg,ep,ev,re,r,rp) ...@@ -74,7 +74,8 @@ function c101204040.posop(e,tp,eg,ep,ev,re,r,rp)
end end
function c101204040.actcon(e) function c101204040.actcon(e)
local ph=Duel.GetCurrentPhase() local ph=Duel.GetCurrentPhase()
return ph>=PHASE_BATTLE_START and ph<=PHASE_BATTLE return Duel.GetTurnPlayer()==1-tp
and (ph>=PHASE_BATTLE_START and ph<=PHASE_BATTLE )
end end
function c101204040.spcon(e,tp,eg,ep,ev,re,r,rp) function c101204040.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFlagEffect(tp,101204040)>=3 return Duel.GetFlagEffect(tp,101204040)>=3
......
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