*Allow to change creature's sight distance because 50 yards are too small for some scripts.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-23 14:16:03 -05:00
parent ce0a3afc19
commit 4a85a779c1
3 changed files with 7 additions and 9 deletions
+1 -1
View File
@@ -649,7 +649,6 @@ class TRINITY_DLL_SPEC Creature : public Unit
uint32 m_GlobalCooldown;
bool canSeeOrDetect(Unit const* u, bool detect, bool inVisibleList = false, bool is3dDistance = true) const;
bool IsWithinSightDist(Unit const* u) const;
bool canStartAttack(Unit const* u, bool force) const;
float GetAttackDistance(Unit const* pl) const;
@@ -746,6 +745,7 @@ class TRINITY_DLL_SPEC Creature : public Unit
static float _GetDamageMod(int32 Rank);
float m_SightDistance, m_CombatDistance;
protected:
bool CreateFromProto(uint32 guidlow,uint32 Entry,uint32 team, const CreatureData *data = NULL);
bool InitEntry(uint32 entry, uint32 team=ALLIANCE, const CreatureData* data=NULL);