*Make range check dependent from target.
--HG-- branch : trunk
This commit is contained in:
@@ -844,6 +844,11 @@ class TRINITY_DLL_SPEC Unit : public WorldObject
|
||||
void ApplyDiminishingAura(DiminishingGroup group, bool apply);
|
||||
void ClearDiminishings() { m_Diminishing.clear(); }
|
||||
|
||||
//target dependent range checks
|
||||
uint32 GetSpellMaxRangeForTarget(Unit* target,const SpellRangeEntry * rangeEntry);
|
||||
uint32 GetSpellMinRangeForTarget(Unit* target,const SpellRangeEntry * rangeEntry);
|
||||
uint32 GetSpellRadiusForTarget(Unit* target,const SpellRadiusEntry * radiusEntry);
|
||||
|
||||
virtual void Update( uint32 time );
|
||||
|
||||
void setAttackTimer(WeaponAttackType type, uint32 time) { m_attackTimer[type] = time; }
|
||||
|
||||
Reference in New Issue
Block a user