mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
Fix slow calculation
Full details: http://www.eqemulator.org/forums/showthread.php?t=38734
This commit is contained in:
+2
-4
@@ -1941,10 +1941,8 @@ void Mob::Kill() {
|
||||
|
||||
void Mob::SetAttackTimer() {
|
||||
float PermaHaste;
|
||||
if(GetHaste() > 0)
|
||||
PermaHaste = 1 / (1 + (float)GetHaste()/100);
|
||||
else if(GetHaste() < 0)
|
||||
PermaHaste = 1 * (1 - (float)GetHaste()/100);
|
||||
if (GetHaste())
|
||||
PermaHaste = 1 / (1 + (float)GetHaste() / 100);
|
||||
else
|
||||
PermaHaste = 1.0f;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user