mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[10977] Add ghost speed rate in config: Death.Ghost.RunSpeed.
Also clarify context for remove ghost auras place after set alive state. This let get more expected results at remove ghost speed aura. Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
7aab4eecdf
commit
af50b352b2
6 changed files with 17 additions and 3 deletions
|
|
@ -4497,12 +4497,13 @@ void Player::ResurrectPlayer(float restore_percent, bool applySickness)
|
|||
|
||||
// remove death flag + set aura
|
||||
SetByteValue(UNIT_FIELD_BYTES_1, 3, 0x00);
|
||||
|
||||
SetDeathState(ALIVE);
|
||||
|
||||
if(getRace() == RACE_NIGHTELF)
|
||||
RemoveAurasDueToSpell(20584); // speed bonuses
|
||||
RemoveAurasDueToSpell(8326); // SPELL_AURA_GHOST
|
||||
|
||||
SetDeathState(ALIVE);
|
||||
|
||||
SetMovement(MOVE_LAND_WALK);
|
||||
SetMovement(MOVE_UNROOT);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue