Commit 641e3c01 authored by gg123gg's avatar gg123gg Committed by GitHub

Update c12011009.lua

parent 71e64b18
...@@ -88,8 +88,8 @@ function c12011009.efop(e,tp,eg,ep,ev,re,r,rp) ...@@ -88,8 +88,8 @@ function c12011009.efop(e,tp,eg,ep,ev,re,r,rp)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CLIENT_HINT) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CLIENT_HINT)
e1:SetCode(EFFECT_CANNOT_ACTIVATE) e1:SetCode(EFFECT_CANNOT_ACTIVATE)
e1:SetTargetRange(0,1) e1:SetTargetRange(0,1)
e1:SetValue(c12011009.aclimit) e1:SetValue(1)
e1:SetReset(RESET_PHASE+PHASE_BATTLE) e1:SetCondition(c12011009.actcon)
rc:RegisterEffect(e1,true) rc:RegisterEffect(e1,true)
if not rc:IsType(TYPE_EFFECT) then if not rc:IsType(TYPE_EFFECT) then
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
...@@ -117,7 +117,7 @@ function c12011009.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -117,7 +117,7 @@ function c12011009.atkop(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
end end
function c12011009.aclimit(e,re,tp) function c12011009.actcon(e)
local ph=Duel.GetCurrentPhase() local ph=Duel.GetCurrentPhase()
return re:GetHandler():IsImmuneToEffect(e) and (ph>=PHASE_BATTLE_START and ph<=PHASE_BATTLE and Duel.GetTurnPlayer()==tp ) return ph>=PHASE_BATTLE_START and ph<=PHASE_BATTLE and Duel.GetTurnPlayer()==tp
end end
\ No newline at end of file
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