diff options
author | maximius <none@none> | 2009-09-29 15:13:46 -0700 |
---|---|---|
committer | maximius <none@none> | 2009-09-29 15:13:46 -0700 |
commit | 4b79217bef70158f894607108ed6a335b4ca1f9a (patch) | |
tree | 748cdb4b64748eec0a2b0e665e42aea2aa47242e /src/game/Creature.h | |
parent | 21f08bff8e6c5f9366828a2be19bc16db781231d (diff) |
*Passive targets under attack by players are not ideal targets for hostile creatures, so avoid them.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Creature.h')
-rw-r--r-- | src/game/Creature.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/Creature.h b/src/game/Creature.h index bfe9709e081..5fbe4a07a28 100644 --- a/src/game/Creature.h +++ b/src/game/Creature.h @@ -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; } |