diff --git a/zone/bot.cpp b/zone/bot.cpp index 2caf3abc0..9cca12353 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -5036,10 +5036,11 @@ bool Bot::Death(Mob *killerMob, int32 damage, uint16 spell_id, EQ::skills::Skill } Raid* raid = entity_list.GetRaidByBotName(this->GetName()); - uint32 gid = raid->GetGroup(this->GetName()); + if (raid) { - for (int x = 0; x < MAX_RAID_MEMBERS; x++) + + for (int x = 0; x < MAX_RAID_MEMBERS; x++) { if (strcmp(raid->members[x].membername, this->GetName()) == 0) { diff --git a/zone/bot.h b/zone/bot.h index 323a8f227..bef90cf0e 100644 --- a/zone/bot.h +++ b/zone/bot.h @@ -387,6 +387,7 @@ public: static void ProcessRaidInvite(Bot* invitee, Client* invitor); //Mitch static void ProcessRaidInvite(Client* invitee, Client* invitor); //Mitch uint8 GetNumberNeedingHealedInRaidGroup(uint8 hpr, bool includePets); //Mitch + inline void SetDirtyAutoHaters() { m_dirtyautohaters = true; } static std::list GetBotSpellsForSpellEffect(Bot* botCaster, int spellEffect); static std::list GetBotSpellsForSpellEffectAndTargetType(Bot* botCaster, int spellEffect, SpellTargetType targetType); @@ -736,6 +737,9 @@ private: bool SavePet(); // Save and depop bot pet if there is one bool DeletePet(); + //Raid Additions + bool m_dirtyautohaters; + public: static uint8 spell_casting_chances[SPELL_TYPE_COUNT][PLAYER_CLASS_COUNT][EQ::constants::STANCE_TYPE_COUNT][cntHSND]; };