Version 1.1.6
+* Fixed a bug that allowed a player already in a fight to be challenged
+ by another player. The other player was then locked into the fight
+ with no way out.
* Added a use command that allows a player to use items in their inventory.
Currently the only items are health, strength, and defense potions.
Command may be used in battle, but it costs you your turn.
--- /dev/null
+These are patches that are made by people who have downloaded GameServ,
+modified the code, and run the diff command against the distribution
+code.
+
+In order to install the patch on your copy of gameserv, simply copy the
+.diff file into the GameServ parent directory, and type the following:
+patch -p0 < filename.diff
else if (!(battle = find(nick)))
{
notice(s_GameServ, u, "You can't attack %s while they aren't playing!", nick);
+ return;
}
else if (!is_playing(ni))
{
notice(s_GameServ, u, "You are not playing!");
+ return;
}
/*
* Offline fighting not implemented yet.
notice(s_GameServ, u, "You are dead. Wait until tomorrow to fight others!");
return;
}
+ else if (player_fight(battle))
+ {
+ notice(s_GameServ, u, "%s is fighting %s already!", battle->stats->name, battle->stats->battle->stats->name);
+ return;
+ }
+ else if (is_fighting(battle))
+ {
+ notice(s_GameServ, u, "%s is fighting %s already!", battle->stats->name, battle->stats->fight->name);
+ return;
+ }
else if (is_playing(ni) && is_playing(battle) && stricmp(ni->stats->name, battle->stats->name) != 0)
{
// Set your battle pointer to the other player