Fixed two major bugs in Werewolf that messed up game play.
This commit is contained in:
1 parent
07d9c19b53
commit
1e45c53d38
2 files changed
+3
-1
No files matched your search
@@ -3,6 +3,7 @@ Auto IRC Bot 3.0: Change Log
|
|||||||
|
|
||||||
3.0 Indev
|
3.0 Indev
|
||||||
===============================================================================
|
===============================================================================
|
||||||
|
* Fixed two major bugs in Werewolf that messed up game play.
|
||||||
* Fixed several bugs and changed around JOIN/START/BEGIN in Werewolf.
|
* Fixed several bugs and changed around JOIN/START/BEGIN in Werewolf.
|
||||||
* Fixed parsing of host masks with / in them. (if it was broken)
|
* Fixed parsing of host masks with / in them. (if it was broken)
|
||||||
* Werewolf: Fixed a leave before game begin bug.
|
* Werewolf: Fixed a leave before game begin bug.
|
||||||
|
|||||||
+2
-1
@@ -95,7 +95,7 @@ sub cmd_wolf {
|
|||||||
# WOLF JOIN
|
# WOLF JOIN
|
||||||
|
|
||||||
# Check if a game is running.
|
# Check if a game is running.
|
||||||
if (!$PGAME) {
|
if (!$PGAME and !$GAME) {
|
||||||
# Check if this is the game channel.
|
# Check if this is the game channel.
|
||||||
if (conf_get('werewolf:chan')) {
|
if (conf_get('werewolf:chan')) {
|
||||||
if ($src->{svr}.'/'.$src->{chan} ne (conf_get('werewolf:chan'))[0][0]) {
|
if ($src->{svr}.'/'.$src->{chan} ne (conf_get('werewolf:chan'))[0][0]) {
|
||||||
@@ -1327,6 +1327,7 @@ sub _gameover {
|
|||||||
|
|
||||||
# Clear all variables.
|
# Clear all variables.
|
||||||
if ($PHASE) { if ($PHASE eq 'n') { timer_del('werewolf.goto_daytime') } }
|
if ($PHASE) { if ($PHASE eq 'n') { timer_del('werewolf.goto_daytime') } }
|
||||||
|
if ($PGAME) { timer_del('werewolf.join_wait') }
|
||||||
$GAME = $PGAME = $GAMECHAN = $GAMETIME = $WAIT = $PHASE = $SEEN = $VISIT = $GUARD = $LVOTEN = $SHOT = $DETECTED = 0;
|
$GAME = $PGAME = $GAMECHAN = $GAMETIME = $WAIT = $PHASE = $SEEN = $VISIT = $GUARD = $LVOTEN = $SHOT = $DETECTED = 0;
|
||||||
%PLAYERS = ();
|
%PLAYERS = ();
|
||||||
%NICKS = ();
|
%NICKS = ();
|
||||||
|
|||||||
Reference in new issue
Block a user