Commit 41e4601e authored by gggg's avatar gggg

change

parent b8ce9788
Pipeline #35681 failed with stage
in 9 seconds
No preview for this file type
...@@ -11,6 +11,7 @@ function s.initial_effect(c) ...@@ -11,6 +11,7 @@ function s.initial_effect(c)
e1:SetType(EFFECT_TYPE_IGNITION) e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetCategory(CATEGORY_DICE) e1:SetCategory(CATEGORY_DICE)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1,id)
e1:SetCondition(s.condition) e1:SetCondition(s.condition)
e1:SetCost(s.cost) e1:SetCost(s.cost)
e1:SetTarget(s.target) e1:SetTarget(s.target)
...@@ -133,7 +134,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -133,7 +134,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
end) end)
return e1 return e1
end, end,
-- ●6:无尽的轮回 -- ●6:晓美焰
function(factory) function(factory)
local e1=factory() local e1=factory()
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
...@@ -166,6 +167,8 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -166,6 +167,8 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(effect,true) c:RegisterEffect(effect,true)
end end
end end
s.skipop(e,tp)
end end
function s.distarget(e,c) function s.distarget(e,c)
...@@ -180,3 +183,22 @@ function s.disoperation(e,tp,eg,ep,ev,re,r,rp) ...@@ -180,3 +183,22 @@ function s.disoperation(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateEffect(ev) Duel.NegateEffect(ev)
end end
end end
function s.skipop(e,tp)
local ph=Duel.GetCurrentPhase()
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SKIP_BP)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetTargetRange(1,0)
if Duel.GetTurnPlayer()==tp and ph>PHASE_MAIN1 and ph<PHASE_MAIN2 then
e1:SetLabel(Duel.GetTurnCount())
e1:SetCondition(s.skipcon)
e1:SetReset(RESET_PHASE+PHASE_BATTLE+RESET_SELF_TURN,2)
else
e1:SetReset(RESET_PHASE+PHASE_BATTLE+RESET_SELF_TURN,1)
end
Duel.RegisterEffect(e1,tp)
end
function s.skipcon(e)
return Duel.GetTurnCount()~=e:GetLabel()
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