[svn] Check creature combat reach when loading db. This should fix the bug that finding random contact point causes crash.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-11-01 16:53:16 -05:00
parent d292b85d38
commit 37d0fdd0cd
4 changed files with 20 additions and 8 deletions
+1
View File
@@ -721,6 +721,7 @@ class TRINITY_DLL_SPEC Unit : public WorldObject
bool CanDualWield() const { return m_canDualWield; }
void SetCanDualWield(bool value) { m_canDualWield = value; }
bool canReachWithAttack(Unit *pVictim) const;
float GetCombatReach() const { return m_floatValues[UNIT_FIELD_COMBATREACH]; }
bool IsWithinCombatDist(Unit *obj, float dist2compare) const;
void GetRandomContactPoint( const Unit* target, float &x, float &y, float &z, float distance2dMin, float distance2dMax ) const;
uint32 m_extraAttacks;