From 99c2efe3c246b450e6e690ded890c362a95a5c28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A1udio=20Costa?= <54484196+claudiodfc@users.noreply.github.com> Date: Tue, 16 Mar 2021 22:58:56 +0000 Subject: [PATCH] fix(Core): Rogue - Premeditation fix (#4695) --- src/server/game/Spells/Spell.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index e0cc6c37a..bfb254b2d 100644 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -2648,8 +2648,16 @@ void Spell::DoAllEffectOnTarget(TargetInfo* target) { m_caster->CombatStart(effectUnit, !(m_spellInfo->AttributesEx3 & SPELL_ATTR3_NO_INITIAL_AGGRO)); - if (!effectUnit->IsStandState()) - effectUnit->SetStandState(UNIT_STAND_STATE_STAND); + // Unsure if there are more spells that are not supposed to stop enemy from + // regenerating HP from food, so for now it stays as an ID. + const uint32 SPELL_PREMEDITATION = 14183; + if (m_spellInfo->Id != SPELL_PREMEDITATION) + { + if (!effectUnit->IsStandState()) + { + effectUnit->SetStandState(UNIT_STAND_STATE_STAND); + } + } } }