mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
[10979] Add extra ghost speed rate for BGs: Death.Ghost.RunSpeed.Battleground
Also recently added option renamed to Death.Ghost.RunSpeed.World Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
a7f784f676
commit
46fdc3af97
5 changed files with 12 additions and 5 deletions
|
|
@ -8271,7 +8271,7 @@ void Unit::UpdateSpeed(UnitMoveType mtype, bool forced, float ratio)
|
|||
else
|
||||
{
|
||||
if (getDeathState() == CORPSE)
|
||||
speed *= sWorld.getConfig(CONFIG_FLOAT_GHOST_RUN_SPEED);
|
||||
speed *= sWorld.getConfig(((Player*)this)->InBattleGround() ? CONFIG_FLOAT_GHOST_RUN_SPEED_BG : CONFIG_FLOAT_GHOST_RUN_SPEED_WORLD);
|
||||
}
|
||||
|
||||
// Apply strongest slow aura mod to speed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue