fix(CORE/CREATURE) Polymorphed erratic mob behavior (#5699)
This commit is contained in:
parent
ff2737fee8
commit
87da6d1d94
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue