Commit 19d11b4f authored by salix5's avatar salix5

Merge pull request #1429 from DailyShana/patch-6

fix
parents 4b1d77a3 f5031f49
...@@ -21,6 +21,7 @@ function c18326736.initial_effect(c) ...@@ -21,6 +21,7 @@ function c18326736.initial_effect(c)
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetCost(c18326736.skipcost) e2:SetCost(c18326736.skipcost)
e2:SetTarget(c18326736.skiptg)
e2:SetOperation(c18326736.skipop) e2:SetOperation(c18326736.skipop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--material --material
...@@ -69,9 +70,12 @@ function c18326736.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -69,9 +70,12 @@ function c18326736.spop(e,tp,eg,ep,ev,re,r,rp)
end end
function c18326736.skipcost(e,tp,eg,ep,ev,re,r,rp,chk) function c18326736.skipcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:CheckRemoveOverlayCard(tp,7,REASON_COST) and not Duel.IsPlayerAffectedByEffect(1-tp,EFFECT_SKIP_TURN) end if chk==0 then return c:CheckRemoveOverlayCard(tp,7,REASON_COST) end
c:RemoveOverlayCard(tp,7,7,REASON_COST) c:RemoveOverlayCard(tp,7,7,REASON_COST)
end end
function c18326736.skiptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not Duel.IsPlayerAffectedByEffect(1-tp,EFFECT_SKIP_TURN) end
end
function c18326736.skipop(e,tp,eg,ep,ev,re,r,rp) function c18326736.skipop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
......
...@@ -39,6 +39,7 @@ function c23846921.arcanareg(c,coin) ...@@ -39,6 +39,7 @@ function c23846921.arcanareg(c,coin)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetCondition(c23846921.skipcon) e1:SetCondition(c23846921.skipcon)
e1:SetCost(c23846921.skipcost) e1:SetCost(c23846921.skipcost)
e1:SetTarget(c23846921.skiptg)
e1:SetOperation(c23846921.skipop) e1:SetOperation(c23846921.skipop)
e1:SetReset(RESET_EVENT+0x1ff0000) e1:SetReset(RESET_EVENT+0x1ff0000)
c:RegisterEffect(e1) c:RegisterEffect(e1)
...@@ -61,12 +62,14 @@ function c23846921.skipcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -61,12 +62,14 @@ function c23846921.skipcon(e,tp,eg,ep,ev,re,r,rp)
return ep==tp and e:GetHandler():GetFlagEffectLabel(36690018)==1 return ep==tp and e:GetHandler():GetFlagEffectLabel(36690018)==1
end end
function c23846921.skipcost(e,tp,eg,ep,ev,re,r,rp,chk) function c23846921.skipcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToGraveAsCost,tp,LOCATION_MZONE,0,2,nil) if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToGraveAsCost,tp,LOCATION_MZONE,0,2,nil) end
and not Duel.IsPlayerAffectedByEffect(1-tp,EFFECT_SKIP_TURN) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToGraveAsCost,tp,LOCATION_MZONE,0,2,2,nil) local g=Duel.SelectMatchingCard(tp,Card.IsAbleToGraveAsCost,tp,LOCATION_MZONE,0,2,2,nil)
Duel.SendtoGrave(g,REASON_COST) Duel.SendtoGrave(g,REASON_COST)
end end
function c23846921.skiptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not Duel.IsPlayerAffectedByEffect(1-tp,EFFECT_SKIP_TURN) end
end
function c23846921.skipop(e,tp,eg,ep,ev,re,r,rp) function c23846921.skipop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD) 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