Added Mob::HasTargetReflection()

This commit is contained in:
Uleat
2017-01-30 17:38:17 -05:00
parent dc308e2ecb
commit da9792160d
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -420,6 +420,7 @@ public:
strn0cpy(name, GetName(), 64); return; };
inline Mob* GetTarget() const { return target; }
virtual void SetTarget(Mob* mob);
inline bool HasTargetReflection() const { return (target && target->target == this); }
virtual inline float GetHPRatio() const { return max_hp == 0 ? 0 : ((float)cur_hp/max_hp*100); }
virtual inline int GetIntHPRatio() const { return max_hp == 0 ? 0 : static_cast<int>(cur_hp * 100 / max_hp); }
inline int32 GetAC() const { return AC; }