*Passive targets under attack by players are not ideal targets for hostile creatures, so avoid them.

--HG--
branch : trunk
This commit is contained in:
maximius
2009-09-29 15:13:46 -07:00
parent 21f08bff8e
commit 4b79217bef
3 changed files with 30 additions and 13 deletions
+1
View File
@@ -641,6 +641,7 @@ class TRINITY_DLL_SPEC Creature : public Unit
void SetNoSearchAssistance(bool val) { m_AlreadySearchedAssistance = val; }
bool HasSearchedAssistance() { return m_AlreadySearchedAssistance; }
bool CanAssistTo(const Unit* u, const Unit* enemy, bool checkfaction = true) const;
bool _IsTargetAcceptable(const Unit* target) const;
MovementGeneratorType GetDefaultMovementType() const { return m_defaultMovementType; }
void SetDefaultMovementType(MovementGeneratorType mgt) { m_defaultMovementType = mgt; }