Commit 4303fa90 authored by Chrono-Genex's avatar Chrono-Genex Committed by GitHub

fix (#1815)

parent bd7469ed
......@@ -5,9 +5,13 @@ function c23471572.initial_effect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMING_END_PHASE)
e1:SetTarget(c23471572.target)
e1:SetOperation(c23471572.activate)
c:RegisterEffect(e1)
end
function c23471572.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not Duel.IsPlayerAffectedByEffect(tp,EFFECT_SKIP_SP) end
end
function c23471572.activate(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
......
......@@ -11,6 +11,7 @@ function c33393090.initial_effect(c)
e1:SetCountLimit(1,33393090+EFFECT_COUNT_CODE_DUEL)
e1:SetCost(c33393090.cost)
e1:SetCondition(c33393090.condition)
e1:SetTarget(c33393090.target)
e1:SetOperation(c33393090.activate)
c:RegisterEffect(e1)
local e2=e1:Clone()
......@@ -45,6 +46,9 @@ end
function c33393090.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:GetCount()==1 and eg:IsContains(e:GetHandler())
end
function c33393090.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not Duel.IsPlayerAffectedByEffect(1-tp,EFFECT_SKIP_DP) end
end
function c33393090.activate(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
......
......@@ -5,9 +5,13 @@ function c35316708.initial_effect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMING_END_PHASE)
e1:SetTarget(c35316708.target)
e1:SetOperation(c35316708.activate)
c:RegisterEffect(e1)
end
function c35316708.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not Duel.IsPlayerAffectedByEffect(1-tp,EFFECT_SKIP_DP) end
end
function c35316708.activate(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
......
......@@ -13,6 +13,7 @@ function c55870497.initial_effect(c)
e3:SetProperty(EFFECT_FLAG_DELAY)
e3:SetRange(LOCATION_SZONE)
e3:SetCondition(c55870497.skipcon)
e3:SetTarget(c55870497.skiptg)
e3:SetOperation(c55870497.skipop)
c:RegisterEffect(e3)
end
......@@ -20,6 +21,9 @@ function c55870497.skipcon(e,tp,eg,ep,ev,re,r,rp)
return rp==tp and re:IsHasType(EFFECT_TYPE_ACTIVATE)
and re:GetHandler():IsSetCard(0x60)
end
function c55870497.skiptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not Duel.IsPlayerAffectedByEffect(1-tp,EFFECT_SKIP_M1) end
end
function c55870497.skipop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
......
......@@ -6,12 +6,16 @@ function c57069605.initial_effect(c)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMING_MAIN_END)
e1:SetCondition(c57069605.condition)
e1:SetTarget(c57069605.target)
e1:SetOperation(c57069605.activate)
c:RegisterEffect(e1)
end
function c57069605.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetLP(tp)+2000<=Duel.GetLP(1-tp)
end
function c57069605.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not Duel.IsPlayerAffectedByEffect(1-tp,EFFECT_SKIP_BP) end
end
function c57069605.activate(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
......
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