[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:
Pat S 2011-01-07 07:33:20 +03:00 committed by VladimirMangos
parent a7f784f676
commit 46fdc3af97
5 changed files with 12 additions and 5 deletions

View file

@ -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