mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-14 01:29:07 +00:00
fix(CORE/CREATURE) Polymorphed erratic mob behavior (#5699)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user