Commit 266c1215 authored by Momobako's avatar Momobako

Merge branch 'master' of https://github.com/purerosefallen/ygopro-server into tcg_random

parents ad875162 6ed8cbeb
...@@ -215,7 +215,8 @@ ...@@ -215,7 +215,8 @@
"callback": { "callback": {
"command": "xbuild", "command": "xbuild",
"args": [ "args": [
"/property:Configuration=Release" "/property:Configuration=Release",
"/property:TargetFrameworkVersion=\"v4.5\""
], ],
"path": "./windbot/" "path": "./windbot/"
} }
......
...@@ -214,7 +214,8 @@ ...@@ -214,7 +214,8 @@
"callback": { "callback": {
"command": "xbuild", "command": "xbuild",
"args": [ "args": [
"/property:Configuration=Release" "/property:Configuration=Release",
"/property:TargetFrameworkVersion=\"v4.5\""
], ],
"path": "./windbot/" "path": "./windbot/"
} }
......
...@@ -73,7 +73,7 @@ cd .. ...@@ -73,7 +73,7 @@ cd ..
git clone https://github.com/purerosefallen/windbot git clone https://github.com/purerosefallen/windbot
cd windbot cd windbot
xbuild /property:Configuration=Release xbuild /property:Configuration=Release /property:TargetFrameworkVersion="v4.5"
ln -s bin/Release/WindBot.exe . ln -s bin/Release/WindBot.exe .
ln -s ../ygopro/cards.cdb . ln -s ../ygopro/cards.cdb .
pm2 start pm2.json pm2 start pm2.json
......
...@@ -73,7 +73,7 @@ cd .. ...@@ -73,7 +73,7 @@ cd ..
git clone https://github.com/purerosefallen/windbot git clone https://github.com/purerosefallen/windbot
cd windbot cd windbot
xbuild /property:Configuration=Release xbuild /property:Configuration=Release /property:TargetFrameworkVersion="v4.5"
ln -s bin/Release/WindBot.exe . ln -s bin/Release/WindBot.exe .
ln -s ../ygopro/cards.cdb . ln -s ../ygopro/cards.cdb .
pm2 start pm2.json pm2 start pm2.json
......
...@@ -71,7 +71,7 @@ cd .. ...@@ -71,7 +71,7 @@ cd ..
git clone https://github.com/purerosefallen/windbot git clone https://github.com/purerosefallen/windbot
cd windbot cd windbot
xbuild /property:Configuration=Release xbuild /property:Configuration=Release /property:TargetFrameworkVersion="v4.5"
ln -s bin/Release/WindBot.exe . ln -s bin/Release/WindBot.exe .
ln -s ../ygopro/cards.cdb . ln -s ../ygopro/cards.cdb .
pm2 start pm2.json pm2 start pm2.json
......
...@@ -71,7 +71,7 @@ cd .. ...@@ -71,7 +71,7 @@ cd ..
git clone https://github.com/purerosefallen/windbot git clone https://github.com/purerosefallen/windbot
cd windbot cd windbot
xbuild /property:Configuration=Release xbuild /property:Configuration=Release /property:TargetFrameworkVersion="v4.5"
ln -s bin/Release/WindBot.exe . ln -s bin/Release/WindBot.exe .
ln -s ../ygopro/cards.cdb . ln -s ../ygopro/cards.cdb .
pm2 start pm2.json pm2 start pm2.json
......
...@@ -70,7 +70,7 @@ cd .. ...@@ -70,7 +70,7 @@ cd ..
git clone https://github.com/purerosefallen/windbot git clone https://github.com/purerosefallen/windbot
cd windbot cd windbot
xbuild /property:Configuration=Release xbuild /property:Configuration=Release /property:TargetFrameworkVersion="v4.5"
ln -s bin/Release/WindBot.exe . ln -s bin/Release/WindBot.exe .
ln -s ../ygopro/cards.cdb . ln -s ../ygopro/cards.cdb .
pm2 start pm2.json pm2 start pm2.json
......
...@@ -7,7 +7,7 @@ git reset --hard FETCH_HEAD ...@@ -7,7 +7,7 @@ git reset --hard FETCH_HEAD
cd windbot cd windbot
git pull origin master git pull origin master
git reset --hard FETCH_HEAD git reset --hard FETCH_HEAD
echo y | xbuild /property:Configuration=Release echo y | xbuild /property:Configuration=Release /property:TargetFrameworkVersion="v4.5"
cd ../ygopro cd ../ygopro
git pull origin server git pull origin server
git reset --hard FETCH_HEAD git reset --hard FETCH_HEAD
......
...@@ -674,7 +674,7 @@ CLIENT_is_able_to_reconnect = (client, deckbuf) -> ...@@ -674,7 +674,7 @@ CLIENT_is_able_to_reconnect = (client, deckbuf) ->
return true return true
CLIENT_get_kick_reconnect_target = (client, deckbuf) -> CLIENT_get_kick_reconnect_target = (client, deckbuf) ->
for room in ROOM_all when room.started and !room.windbot for room in ROOM_all when room and room.started and !room.windbot
for player in room.get_playing_player() when !player.closed and player.name == client.name and player.pass == client.pass and (settings.modules.mycard.enabled or settings.modules.tournament_mode.enabled or player.ip == client.ip or (settings.modules.vip.enabled and player.vip and client.vpass == player.vpass)) and (!deckbuf or _.isEqual(player.start_deckbuf, deckbuf)) for player in room.get_playing_player() when !player.closed and player.name == client.name and player.pass == client.pass and (settings.modules.mycard.enabled or settings.modules.tournament_mode.enabled or player.ip == client.ip or (settings.modules.vip.enabled and player.vip and client.vpass == player.vpass)) and (!deckbuf or _.isEqual(player.start_deckbuf, deckbuf))
return player return player
return null return null
......
...@@ -902,7 +902,7 @@ ...@@ -902,7 +902,7 @@
var len2, len3, m, n, player, ref3, room; var len2, len3, m, n, player, ref3, room;
for (m = 0, len2 = ROOM_all.length; m < len2; m++) { for (m = 0, len2 = ROOM_all.length; m < len2; m++) {
room = ROOM_all[m]; room = ROOM_all[m];
if (room.started && !room.windbot) { if (room && room.started && !room.windbot) {
ref3 = room.get_playing_player(); ref3 = room.get_playing_player();
for (n = 0, len3 = ref3.length; n < len3; n++) { for (n = 0, len3 = ref3.length; n < len3; n++) {
player = ref3[n]; player = ref3[n];
......
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