fix(CORE/CREATURE) Polymorphed erratic mob behavior (#5699)

This commit is contained in:
Maxpro
2021-05-10 19:48:59 -07:00
committed by GitHub
parent ff2737fee8
commit 87da6d1d94

View File

@@ -9816,6 +9816,12 @@ bool Unit::Attack(Unit* victim, bool meleeAttack)
return false;
}
// creatures should not try to attack the player during polymorph
if (creature && creature->IsPolymorphed())
{
return false;
}
//if (HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_PACIFIED)) // pussywizard: wtf? why having this flag prevents from entering combat? it should just prevent melee attack
// return false;