Commit f5031f49 authored by DailyShana's avatar DailyShana

fix

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