Fix some behavioral weirdness resulting from 79a945d5 - thanks ccrs.
This commit is contained in:
1 parent
5354b585e3
commit
bfac62c5c9
2 files changed
+1
-4
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user