mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-02 10:33:46 +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;
|
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
|
//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;
|
// return false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user