Cleanup of bot raid work and inclusion of bot_raid in cmake

This commit is contained in:
neckkola
2022-02-23 15:58:13 -04:00
parent ff3cd08189
commit d67fa473a2
12 changed files with 135 additions and 126 deletions
+5 -1
View File
@@ -1097,7 +1097,11 @@ void Raid::SplitExp(uint32 exp, Mob* other) {
return;
for (unsigned int x = 0; x < MAX_RAID_MEMBERS; x++) {
if (members[x].member != nullptr && members[x].member->CastToBot()->GetBotID() == 0) // If Group Member is Client
#ifdef BOTS
if (members[x].member != nullptr && !members[x].IsBot) // If Group Member is Client
#else
if (members[x].member != nullptr) // If Group Member is Client
#endif
{
Client *cmember = members[x].member;
// add exp + exp cap