mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-09 22:20:24 +00:00
Fixed a bot crash
This commit is contained in:
+3
-2
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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<BotSpell> GetBotSpellsForSpellEffect(Bot* botCaster, int spellEffect);
|
||||
static std::list<BotSpell> 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];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user