mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 16:41:29 +00:00
Port slow fixes to bots
This commit is contained in:
parent
6c3d5c713c
commit
2fa31799f6
@ -5,6 +5,7 @@ demonstar55: Incrase Mob kick/bash timer by 3
|
|||||||
see: http://www.eqemulator.org/forums/showthread.php?t=38734
|
see: http://www.eqemulator.org/forums/showthread.php?t=38734
|
||||||
demonstar55: Fix slow effect on NPC special attack reuse timers
|
demonstar55: Fix slow effect on NPC special attack reuse timers
|
||||||
see: http://www.eqemulator.org/forums/showthread.php?t=38734
|
see: http://www.eqemulator.org/forums/showthread.php?t=38734
|
||||||
|
demonstar55: Slow fixes to bots!
|
||||||
|
|
||||||
== 09/08/2014 ==
|
== 09/08/2014 ==
|
||||||
demonstar55: Fix slow calc
|
demonstar55: Fix slow calc
|
||||||
|
|||||||
12
zone/bot.cpp
12
zone/bot.cpp
@ -8350,12 +8350,10 @@ void Bot::DoClassAttacks(Mob *target, bool IsRiposte) {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
float HasteModifier = 0;
|
float HasteModifier = 0;
|
||||||
if(GetHaste() >= 0){
|
if (GetHaste())
|
||||||
HasteModifier = 10000 / (100 + GetHaste());
|
HasteModifier = 10000 / (100 + GetHaste());
|
||||||
}
|
else
|
||||||
else {
|
HasteModifier = 100;
|
||||||
HasteModifier = (100 - GetHaste());
|
|
||||||
}
|
|
||||||
int32 dmg = 0;
|
int32 dmg = 0;
|
||||||
|
|
||||||
uint16 skill_to_use = -1;
|
uint16 skill_to_use = -1;
|
||||||
@ -8981,10 +8979,8 @@ int32 Bot::CalcMaxMana() {
|
|||||||
|
|
||||||
void Bot::SetAttackTimer() {
|
void Bot::SetAttackTimer() {
|
||||||
float PermaHaste;
|
float PermaHaste;
|
||||||
if(GetHaste() > 0)
|
if (GetHaste())
|
||||||
PermaHaste = 1 / (1 + (float)GetHaste()/100);
|
PermaHaste = 1 / (1 + (float)GetHaste()/100);
|
||||||
else if(GetHaste() < 0)
|
|
||||||
PermaHaste = 1 * (1 - (float)GetHaste()/100);
|
|
||||||
else
|
else
|
||||||
PermaHaste = 1.0f;
|
PermaHaste = 1.0f;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user