Fix slow calculation

Full details: http://www.eqemulator.org/forums/showthread.php?t=38734
This commit is contained in:
Michael Cook (mackal)
2014-09-08 21:43:25 -04:00
parent 80242bd250
commit 506b3ca4a0
2 changed files with 6 additions and 4 deletions
+2 -4
View File
@@ -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;