Skip to content

Commit

Permalink
Fix NPC pets not entering combat correctly when aggro'd
Browse files Browse the repository at this point in the history
Fixes #13
  • Loading branch information
Niam5 committed Jun 7, 2024
1 parent 905460a commit 42e5528
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/Entities/Unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8534,7 +8534,7 @@ void Unit::SetInCombatState(bool PvP, Unit* enemy)
enemy->GetCombatManager().TriggerCombatTimer(controller);
}
#ifdef BUILD_ELUNA
else if (elunaEvents)
else if (elunaEvents && controller->IsPlayer())
{
controller->SetInCombatWith(enemy); // player needs to enter combat with summoned Eluna pet
enemy->AddThreat(controller);
Expand Down

0 comments on commit 42e5528

Please sign in to comment.