diff options
| author | Gooyeth <migmadmu@hotmail.com> | 2015-01-27 14:08:13 -0600 |
|---|---|---|
| committer | Gooyeth <migmadmu@hotmail.com> | 2015-01-27 14:08:13 -0600 |
| commit | 3edd93d1e54081d1b3c01916cc2082dc6f4157b7 (patch) | |
| tree | 2cea0c97bf7c69a65e8c382620c30c1a40057390 /src | |
| parent | 34bbf031c04916b104432dc6e5d12b5ab05c4833 (diff) | |
Core/Spells: Correction Stuck effect (6.0.3)
The player dies if heathstone is in cooldown, else the player is teleported to home.
Thanks @F03SD and @Kinzcool.
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/game/Spells/SpellEffects.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp index 3eeb50a2d39..64e74424f70 100644 --- a/src/server/game/Spells/SpellEffects.cpp +++ b/src/server/game/Spells/SpellEffects.cpp @@ -3942,7 +3942,13 @@ void Spell::EffectStuck(SpellEffIndex /*effIndex*/) return; } - // the player is teleported to home + // the player dies if hearthstone is in cooldown, else the player is teleported to home + if (player->HasSpellCooldown(8690)) + { + player->Kill(player); + return; + } + player->TeleportTo(player->m_homebindMapId, player->m_homebindX, player->m_homebindY, player->m_homebindZ, player->GetOrientation(), TELE_TO_SPELL); // Stuck spell trigger Hearthstone cooldown |
