mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-01 11:22:28 +00:00
Merge pull request #404 from noudess/master
Mobs that were blinded were being included in every use of IsFeared()
This commit is contained in:
commit
1438c1a9c3
@ -803,8 +803,7 @@ public:
|
|||||||
//old fear function
|
//old fear function
|
||||||
//void SetFeared(Mob *caster, uint32 duration, bool flee = false);
|
//void SetFeared(Mob *caster, uint32 duration, bool flee = false);
|
||||||
float GetFearSpeed();
|
float GetFearSpeed();
|
||||||
bool IsFeared() { return curfp; } // This returns true if the mob is feared or fleeing due to low HP
|
bool IsFeared() { return (spellbonuses.IsFeared || flee_mode); } // This returns true if the mob is feared or fleeing due to low HP
|
||||||
//old fear: inline void StartFleeing() { SetFeared(GetHateTop(), FLEE_RUN_DURATION, true); }
|
|
||||||
inline void StartFleeing() { flee_mode = true; CalculateNewFearpoint(); }
|
inline void StartFleeing() { flee_mode = true; CalculateNewFearpoint(); }
|
||||||
void ProcessFlee();
|
void ProcessFlee();
|
||||||
void CheckFlee();
|
void CheckFlee();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user