Commit 03515b23 authored by POLYMER's avatar POLYMER

fix

parent 1d341758
...@@ -52,6 +52,7 @@ function cm.initial_effect(c) ...@@ -52,6 +52,7 @@ function cm.initial_effect(c)
_globetrot=true _globetrot=true
globetrot = {} globetrot = {}
globetrot.x = 5 globetrot.x = 5
globetrot.g = 0
globetrot.pair = {} globetrot.pair = {}
for i = 1, globetrot.x do for i = 1, globetrot.x do
globetrot.pair[i] = {} globetrot.pair[i] = {}
...@@ -174,8 +175,22 @@ function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -174,8 +175,22 @@ function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk)
cm.A_status[tp+1] = false cm.A_status[tp+1] = false
local x local x
while true do while true do
globetrot.g = globetrot.g + 1
x = Duel.GetRandomNumber(1,5) x = Duel.GetRandomNumber(1,5)
x = globetrot.random(x) x = globetrot.random(x)
if globetrot.g > 5 then
while true do
x = Duel.GetRandomNumber(1,5)
if cm[tostring(x)](c) then
for i = 1, globetrot.x do
if globetrot.pair[i]["first"] == x then
globetrot.pair[i]["second"] = globetrot.pair[i]["second"] + 1
end
end
goto A
end
end
end
if cm[tostring(x)](c) then if cm[tostring(x)](c) then
for i = 1, globetrot.x do for i = 1, globetrot.x do
if globetrot.pair[i]["first"] == x then if globetrot.pair[i]["first"] == x then
...@@ -185,6 +200,7 @@ function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -185,6 +200,7 @@ function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk)
break break
end end
end end
::A::
cm._return(c,x) cm._return(c,x)
return false return false
end end
......
...@@ -174,8 +174,22 @@ function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -174,8 +174,22 @@ function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk)
cm.A_status[tp+1] = false cm.A_status[tp+1] = false
local x local x
while true do while true do
globetrot.g = globetrot.g + 1
x = Duel.GetRandomNumber(1,5) x = Duel.GetRandomNumber(1,5)
x = globetrot.random(x) x = globetrot.random(x)
if globetrot.g > 5 then
while true do
x = Duel.GetRandomNumber(1,5)
if cm[tostring(x)](c) then
for i = 1, globetrot.x do
if globetrot.pair[i]["first"] == x then
globetrot.pair[i]["second"] = globetrot.pair[i]["second"] + 1
end
end
goto A
end
end
end
if cm[tostring(x)](c) then if cm[tostring(x)](c) then
for i = 1, globetrot.x do for i = 1, globetrot.x do
if globetrot.pair[i]["first"] == x then if globetrot.pair[i]["first"] == x then
...@@ -185,6 +199,7 @@ function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -185,6 +199,7 @@ function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk)
break break
end end
end end
::A::
cm._return(c,x) cm._return(c,x)
return false return false
end end
......
...@@ -174,8 +174,22 @@ function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -174,8 +174,22 @@ function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk)
cm.A_status[tp+1] = false cm.A_status[tp+1] = false
local x local x
while true do while true do
globetrot.g = globetrot.g + 1
x = Duel.GetRandomNumber(1,5) x = Duel.GetRandomNumber(1,5)
x = globetrot.random(x) x = globetrot.random(x)
if globetrot.g > 5 then
while true do
x = Duel.GetRandomNumber(1,5)
if cm[tostring(x)](c) then
for i = 1, globetrot.x do
if globetrot.pair[i]["first"] == x then
globetrot.pair[i]["second"] = globetrot.pair[i]["second"] + 1
end
end
goto A
end
end
end
if cm[tostring(x)](c) then if cm[tostring(x)](c) then
for i = 1, globetrot.x do for i = 1, globetrot.x do
if globetrot.pair[i]["first"] == x then if globetrot.pair[i]["first"] == x then
...@@ -185,6 +199,7 @@ function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -185,6 +199,7 @@ function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk)
break break
end end
end end
::A::
cm._return(c,x) cm._return(c,x)
return false return false
end end
......
...@@ -174,8 +174,22 @@ function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -174,8 +174,22 @@ function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk)
cm.A_status[tp+1] = false cm.A_status[tp+1] = false
local x local x
while true do while true do
globetrot.g = globetrot.g + 1
x = Duel.GetRandomNumber(1,5) x = Duel.GetRandomNumber(1,5)
x = globetrot.random(x) x = globetrot.random(x)
if globetrot.g > 5 then
while true do
x = Duel.GetRandomNumber(1,5)
if cm[tostring(x)](c) then
for i = 1, globetrot.x do
if globetrot.pair[i]["first"] == x then
globetrot.pair[i]["second"] = globetrot.pair[i]["second"] + 1
end
end
goto A
end
end
end
if cm[tostring(x)](c) then if cm[tostring(x)](c) then
for i = 1, globetrot.x do for i = 1, globetrot.x do
if globetrot.pair[i]["first"] == x then if globetrot.pair[i]["first"] == x then
...@@ -185,6 +199,7 @@ function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -185,6 +199,7 @@ function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk)
break break
end end
end end
::A::
cm._return(c,x) cm._return(c,x)
return false return false
end end
......
...@@ -174,8 +174,22 @@ function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -174,8 +174,22 @@ function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk)
cm.A_status[tp+1] = false cm.A_status[tp+1] = false
local x local x
while true do while true do
globetrot.g = globetrot.g + 1
x = Duel.GetRandomNumber(1,5) x = Duel.GetRandomNumber(1,5)
x = globetrot.random(x) x = globetrot.random(x)
if globetrot.g > 5 then
while true do
x = Duel.GetRandomNumber(1,5)
if cm[tostring(x)](c) then
for i = 1, globetrot.x do
if globetrot.pair[i]["first"] == x then
globetrot.pair[i]["second"] = globetrot.pair[i]["second"] + 1
end
end
goto A
end
end
end
if cm[tostring(x)](c) then if cm[tostring(x)](c) then
for i = 1, globetrot.x do for i = 1, globetrot.x do
if globetrot.pair[i]["first"] == x then if globetrot.pair[i]["first"] == x then
...@@ -185,6 +199,7 @@ function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -185,6 +199,7 @@ function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk)
break break
end end
end end
::A::
cm._return(c,x) cm._return(c,x)
return false return false
end end
......
...@@ -174,8 +174,22 @@ function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -174,8 +174,22 @@ function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk)
cm.A_status[tp+1] = false cm.A_status[tp+1] = false
local x local x
while true do while true do
globetrot.g = globetrot.g + 1
x = Duel.GetRandomNumber(1,5) x = Duel.GetRandomNumber(1,5)
x = globetrot.random(x) x = globetrot.random(x)
if globetrot.g > 5 then
while true do
x = Duel.GetRandomNumber(1,5)
if cm[tostring(x)](c) then
for i = 1, globetrot.x do
if globetrot.pair[i]["first"] == x then
globetrot.pair[i]["second"] = globetrot.pair[i]["second"] + 1
end
end
goto A
end
end
end
if cm[tostring(x)](c) then if cm[tostring(x)](c) then
for i = 1, globetrot.x do for i = 1, globetrot.x do
if globetrot.pair[i]["first"] == x then if globetrot.pair[i]["first"] == x then
...@@ -185,6 +199,7 @@ function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -185,6 +199,7 @@ function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk)
break break
end end
end end
::A::
cm._return(c,x) cm._return(c,x)
return false return false
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