mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-25 01:41:29 +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
|
||||
//void SetFeared(Mob *caster, uint32 duration, bool flee = false);
|
||||
float GetFearSpeed();
|
||||
bool IsFeared() { return curfp; } // 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); }
|
||||
bool IsFeared() { return (spellbonuses.IsFeared || flee_mode); } // This returns true if the mob is feared or fleeing due to low HP
|
||||
inline void StartFleeing() { flee_mode = true; CalculateNewFearpoint(); }
|
||||
void ProcessFlee();
|
||||
void CheckFlee();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user