Skip to content

Commit

Permalink
Automatically Reset SpellList on Reset
Browse files Browse the repository at this point in the history
  • Loading branch information
insunaa committed Dec 23, 2022
1 parent 478d44f commit 41db412
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/game/AI/ScriptDevAI/base/BossAI.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ class BossAI : public CombatAI
void JustDied(Unit* killer = nullptr) override;
void JustReachedHome() override;
void Aggro(Unit* who = nullptr) override;
void Reset() override
{
CombatAI::Reset();
m_creature->SetSpellList(m_creature->GetCreatureInfo()->SpellList);
}

std::chrono::seconds TimeSinceEncounterStart()
{
Expand Down

0 comments on commit 41db412

Please sign in to comment.