Commit 1bfb702e authored by salix5's avatar salix5

Merge pull request #1405 from nekrozar/patch-1

fix Tellarknight Ptolemaeus
parents e3fba511 3c3266b3
...@@ -68,8 +68,9 @@ function c18326736.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -68,8 +68,9 @@ function c18326736.spop(e,tp,eg,ep,ev,re,r,rp)
end end
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)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,7,REASON_COST) end local c=e:GetHandler()
e:GetHandler():RemoveOverlayCard(tp,7,7,REASON_COST) if chk==0 then return c:CheckRemoveOverlayCard(tp,7,REASON_COST) and c:GetFlagEffect(18326737)==0 end
c:RemoveOverlayCard(tp,7,7,REASON_COST)
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())
...@@ -80,6 +81,7 @@ function c18326736.skipop(e,tp,eg,ep,ev,re,r,rp) ...@@ -80,6 +81,7 @@ function c18326736.skipop(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_PHASE+PHASE_END+RESET_OPPO_TURN) e1:SetReset(RESET_PHASE+PHASE_END+RESET_OPPO_TURN)
e1:SetCondition(c18326736.skipcon) e1:SetCondition(c18326736.skipcon)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
e:GetHandler():RegisterFlagEffect(18326737,RESET_PHASE+PHASE_END,0,1)
end end
function c18326736.skipcon(e) function c18326736.skipcon(e)
return Duel.GetTurnPlayer()~=e:GetHandlerPlayer() return Duel.GetTurnPlayer()~=e:GetHandlerPlayer()
......
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