mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
Add some sanity for bard songs in snares ...
This commit is contained in:
parent
78ab347171
commit
79c53a41a8
12
zone/mob.cpp
12
zone/mob.cpp
@ -561,17 +561,17 @@ float Mob::_GetMovementSpeed(int mod) const {
|
||||
movemod = static_cast<int>(aa_mod);
|
||||
}
|
||||
|
||||
if(mod != 0)
|
||||
movemod += mod;
|
||||
|
||||
if(IsClient() && movemod < -85) //cap it at moving very very slow
|
||||
if(movemod < -85) //cap it at moving very very slow
|
||||
movemod = -85;
|
||||
|
||||
if(mod != 0) // passing -47 for walking shouldn't be effected by cap above
|
||||
movemod += mod;
|
||||
|
||||
if (!has_horse && movemod != 0)
|
||||
speed_mod += (speed_mod * float(movemod) / 100.0f);
|
||||
|
||||
if(IsClient() && speed_mod <= 0.0f)
|
||||
return(0.0001f);
|
||||
if(speed_mod <= 0.0f)
|
||||
return (IsClient() ? 0.0001f : 0.0f);
|
||||
|
||||
//runspeed cap.
|
||||
if(IsClient())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user