]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/gameserv.cpp
Fixed a logic error allowing players to bank during a fight
[irc/gameservirc.git] / gameserv / gameserv.cpp
index d2e37a4f4931f048de5b0cc9154efa6b04a64eb8..fae663584a45344aacaa9636ee128c73c502241d 100644 (file)
@@ -2563,7 +2563,11 @@ void do_bank(char *u)
        notice(s_GameServ, u, "You must be playing to use the bank!");
        return;
     }
-
+    else if (is_fighting(user))
+    {
+       notice(s_GameServ, u, "You can't go to the bank during a fight!");
+       return;
+    }
     updateTS(user->stats);
     if (stricmp(cmd, "BALANCE") == 0)
     {