Commit 0b30dbac authored by Satty's avatar Satty

fix

parent 73683e5d
Pipeline #39413 failed with stages
in 16 minutes and 36 seconds
......@@ -22,7 +22,7 @@ function s.initial_effect(c)
end
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return c:IsAttackPos() end
if chk==0 then return c:IsAttackPos() and not c:IsHasEffect(EFFECT_SET_POSITION) end
Duel.ChangePosition(c,POS_FACEUP_DEFENSE)
end
function s.filter(c)
......
......@@ -24,7 +24,7 @@ function s.initial_effect(c)
end
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return c:IsAttackPos() end
if chk==0 then return c:IsAttackPos() and not c:IsHasEffect(EFFECT_SET_POSITION) end
Duel.ChangePosition(c,POS_FACEUP_DEFENSE)
end
function s.filter(c)
......
......@@ -31,8 +31,8 @@ function s.poscon1(e,tp,eg,ep,ev,re,r,rp)
end
function s.poscost1(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return c:IsAttackPos() end
Duel.ChangePosition(e:GetHandler(),POS_FACEUP_DEFENSE)
if chk==0 then return c:IsAttackPos() and not c:IsHasEffect(EFFECT_SET_POSITION) end
Duel.ChangePosition(c,POS_FACEUP_DEFENSE)
end
function s.posop1(e,tp,eg,ep,ev,re,r,rp)
Duel.HintSelection(eg)
......
......@@ -34,8 +34,8 @@ function s.discon(e,tp,eg,ep,ev,re,r,rp)
end
function s.discost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return c:IsAttackPos() end
Duel.ChangePosition(e:GetHandler(),POS_FACEUP_DEFENSE)
if chk==0 then return c:IsAttackPos() and not c:IsHasEffect(EFFECT_SET_POSITION) end
Duel.ChangePosition(c,POS_FACEUP_DEFENSE)
end
function s.distg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,2) end
......
......@@ -25,7 +25,7 @@ function s.initial_effect(c)
end
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return c:IsAttackPos() end
if chk==0 then return c:IsAttackPos() and not c:IsHasEffect(EFFECT_SET_POSITION) end
Duel.ChangePosition(c,POS_FACEUP_DEFENSE)
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -25,7 +25,7 @@ function s.initial_effect(c)
end
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return c:IsAttackPos() end
if chk==0 then return c:IsAttackPos() and not c:IsHasEffect(EFFECT_SET_POSITION) end
Duel.ChangePosition(c,POS_FACEUP_DEFENSE)
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
......
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