Skip to content

Commit

Permalink
AI: Implement ClearOnKillReactions
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Jan 8, 2025
1 parent 8569880 commit 0ccd354
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/game/AI/ScriptDevAI/base/CombatAI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ void CombatAI::AddOnKillSound(int32 soundId)
m_onDeathReactions.emplace_back(soundId, true);
}

void CombatAI::ClearOnKillReactions()
{
m_onDeathReactions.clear();
}

void CombatAI::KilledUnit(Unit* victim)
{
if (!m_creature->IsAlive() || !victim->IsPlayer())
Expand Down
1 change: 1 addition & 0 deletions src/game/AI/ScriptDevAI/base/CombatAI.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class CombatAI : public ScriptedAI
AddOnKillText(fargs...);
}
void AddOnKillSound(int32 soundId);
void ClearOnKillReactions();
void KilledUnit(Unit* /*victim*/) override;

// virtual void ExecuteAction(uint32 action) {}
Expand Down

0 comments on commit 0ccd354

Please sign in to comment.