Fix some behavioral weirdness resulting from 79a945d5 - thanks ccrs.

This commit is contained in:
treeston committed 2016-02-28 01:56:13 +01:00
1 parent 5354b585e3
commit bfac62c5c9
2 files changed
+1 -4

No files matched your search

+1 -1
View File
@@ -9052,10 +9052,10 @@ bool Unit::Attack(Unit* victim, bool meleeAttack)
if (GetTypeId() == TYPEID_UNIT && !IsPet())
{
// should not let player enter combat by right clicking target - doesn't helps
AddThreat(victim, 0.0f);
SetInCombatWith(victim);
if (victim->GetTypeId() == TYPEID_PLAYER)
victim->SetInCombatWith(this);
AddThreat(victim, 0.0f);
ToCreature()->SendAIReaction(AI_REACTION_HOSTILE);
ToCreature()->CallAssistance();