Commit f54c67ae authored by wind2009's avatar wind2009

update SelectPosition

parent e457a34a
...@@ -86,7 +86,7 @@ function s.posop(e,tp,eg,ep,ev,re,r,rp) ...@@ -86,7 +86,7 @@ function s.posop(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc then if tc then
Duel.HintSelection(g) Duel.HintSelection(g)
local pos=Duel.SelectPosition(tp,tc,POS_FACEUP_ATTACK+POS_FACEUP_DEFENSE) local pos=Duel.SelectPosition(tp,tc,POS_FACEUP)
Duel.ChangePosition(tc,pos) Duel.ChangePosition(tc,pos)
end end
end end
...@@ -84,7 +84,7 @@ function s.posop(e,tp,eg,ep,ev,re,r,rp) ...@@ -84,7 +84,7 @@ function s.posop(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc then if tc then
Duel.HintSelection(g) Duel.HintSelection(g)
local pos=Duel.SelectPosition(tp,tc,POS_FACEUP_ATTACK+POS_FACEUP_DEFENSE) local pos=Duel.SelectPosition(tp,tc,POS_FACEUP)
Duel.ChangePosition(tc,pos) Duel.ChangePosition(tc,pos)
end end
end end
\ No newline at end of file
...@@ -89,7 +89,7 @@ function s.posop(e,tp,eg,ep,ev,re,r,rp) ...@@ -89,7 +89,7 @@ function s.posop(e,tp,eg,ep,ev,re,r,rp)
elseif tc:IsPosition(POS_FACEUP_DEFENCE) and tc:IsCanChangePosition() then elseif tc:IsPosition(POS_FACEUP_DEFENCE) and tc:IsCanChangePosition() then
Duel.ChangePosition(tc,POS_FACEUP_ATTACK) Duel.ChangePosition(tc,POS_FACEUP_ATTACK)
else else
local pos=Duel.SelectPosition(tp,tc,POS_FACEUP_ATTACK+POS_FACEUP_DEFENSE) local pos=Duel.SelectPosition(tp,tc,POS_FACEUP)
Duel.ChangePosition(tc,pos) Duel.ChangePosition(tc,pos)
end end
end 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