Commit 35abb1a0 authored by GuGu's avatar GuGu

Update c888174.lua 炸端bug暂时修复版

parent 6b0e3cc2
Pipeline #21970 passed with stage
in 1 minute and 1 second
......@@ -9,6 +9,19 @@ function c888174.initial_effect(c)
e4:SetTarget(c888174.target)
e4:SetOperation(c888174.operation)
c:RegisterEffect(e4)
if not c888174.global_check then
c888174.global_check=true
local e1=Effect.GlobalEffect()
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCountLimit(1)
e1:SetCode(EVENT_PHASE_START+PHASE_STANDBY)
e1:SetCondition(c888174.damcon)
e1:SetOperation(c888174.damop)
Duel.RegisterEffect(e1,0)
local e2=e1:Clone()
Duel.RegisterEffect(e2,1)
end
end
function c888174.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckLPCost(tp,500) end
......@@ -18,19 +31,21 @@ function c888174.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
end
function c888174.operation(e,tp,eg,ep,ev,re,r,rp)
local e2=Effect.CreateEffect(e:GetHandler())
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetCountLimit(1)
e2:SetCode(EVENT_PHASE+PHASE_STANDBY)
e2:SetReset(RESET_PHASE+PHASE_END,8)
e2:SetCondition(c888174.damcon)
e2:SetOperation(c888174.damop)
Duel.RegisterEffect(e2,tp)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetTargetRange(1,0)
e1:SetReset(RESET_PHASE+PHASE_END+RESET_OPPO_TURN,4)
e1:SetCode(0x10000000+888174)
Duel.RegisterEffect(e1,tp)
end
function c888174.damcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp
return Duel.GetTurnPlayer()~=tp and Duel.GetFlagEffect(tp,888174)>0
end
function c888174.damop(e,tp,eg,ep,ev,re,r,rp)
local n=Duel.GetFlagEffect(tp,888174)
for i=1,n do
Duel.Hint(HINT_CARD,0,888174)
Duel.Damage(1-tp,1100,REASON_EFFECT)
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