Core/Units: send AI reactions uppon entering combat instead of attacking an enemy

This commit is contained in:
Ovahlord committed 2021-01-31 14:08:58 +01:00
1 parent 1e1ebf16bd
commit cc25457fe8
3 files changed
+9 -2

No files matched your search

-2
View File
@@ -5586,8 +5586,6 @@ bool Unit::Attack(Unit* victim, bool meleeAttack)
if (creature && !IsControlledByPlayer())
{
EngageWithTarget(victim); // ensure that anything we're attacking has threat
creature->SendAIReaction(AI_REACTION_HOSTILE);
creature->CallAssistance();
// Remove emote state - will be restored on creature reset