Modified ZippZipp's bot name fix from the forums. Limited bot name length to fix a crash. Added Filter check too if you use the Name Filter.

This commit is contained in:
Natedog2012
2015-05-28 11:45:07 -07:00
parent e5f979665d
commit 95243fd6ce
3 changed files with 23 additions and 31 deletions
+1 -1
View File
@@ -154,7 +154,7 @@ public:
// Class Methods
bool IsValidRaceClassCombo();
bool IsValidName();
bool IsBotNameAvailable(std::string* errorMessage);
static bool IsBotNameAvailable(char *botName, std::string* errorMessage);
bool DeleteBot(std::string* errorMessage);
void Spawn(Client* botCharacterOwner, std::string* errorMessage);
virtual void SetLevel(uint8 in_level, bool command = false);