Compare commits

...

2 Commits

Author SHA1 Message Date
bash
b72544b254 playerbots.conf.dist comment added 2024-11-19 00:06:27 +01:00
Revision
b46416fe1e Fix a crash in Forge of Souls (#729) 2024-11-18 22:08:08 +01:00
2 changed files with 2 additions and 2 deletions

View File

@@ -424,7 +424,7 @@ AiPlayerbot.AutoGearCommand = 1
# default: 3 (rare)
AiPlayerbot.AutoGearQualityLimit = 3
# Equips gear score limitation for auto gear command (0 = no limit)
# Equips item level (not gearScore) limitation for auto gear command (0 = no limit)
# default: 0 (no limit)
AiPlayerbot.AutoGearScoreLimit = 0

View File

@@ -7,7 +7,7 @@ bool MoveFromBronjahmTrigger::IsActive()
{
Unit* boss = AI_VALUE2(Unit*, "find target", "bronjahm");
if (boss->FindCurrentSpellBySpellId(SPELL_CORRUPT_SOUL) && bot->HasAura(SPELL_CORRUPT_SOUL))
if (boss && boss->FindCurrentSpellBySpellId(SPELL_CORRUPT_SOUL) && bot->HasAura(SPELL_CORRUPT_SOUL))
return true;
return false;