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)
......@@ -117,4 +117,4 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,g)
end
end
end
\ No newline at end of file
end
......@@ -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)
......@@ -119,4 +119,4 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,g)
end
end
end
\ No newline at end of file
end
......@@ -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)
......@@ -103,4 +103,4 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e2)
tc:RegisterFlagEffect(id+o*2,RESET_EVENT+RESETS_STANDARD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(id,3))
end
end
\ No newline at end of file
end
......@@ -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
......@@ -116,4 +116,4 @@ end
function s.atkval(e,c)
local ct=Duel.GetMatchingGroupCount(s.atkfilter,tp,LOCATION_GRAVE,0,nil)
return ct*200
end
\ No newline at end of file
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)
......@@ -112,4 +112,4 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp)
if tc:IsControler(1-tp) then tc:RegisterFlagEffect(id+o*2,RESET_EVENT+RESETS_STANDARD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(id,1)) end
end
end
end
\ No newline at end of file
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)
......@@ -115,4 +115,4 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp)
Duel.DiscardHand(tp,nil,1,1,REASON_EFFECT+REASON_DISCARD,nil)
end
end
end
\ No newline at end of file
end
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