Jump to content

[fix]Endless Winter(Frost Fever/Chillblains cast on self)


Guest laise

Recommended Posts

What bug does the patch fix? What features does the patch add?

fixes Frost Fever(and as a result Chillblains) applying to self with Endless Winter talent & fixes chillblains cast on self when player logging on

For which repository revision was the patch created?

9362

Is there a thread in the bug report section or at lighthouse? If yes, please add a link to the thread.

haven't seen any

Who has been writing this patch? Please include either forum user names or email addresses.

me

diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 2ebd7f8..37ae16f 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -3024,6 +3024,10 @@ void Spell::finish(bool ok)
                Unit *unit = m_caster->GetGUID()== ihit->targetGUID ? m_caster : ObjectAccessor::GetUnit(*m_caster, ihit->targetGUID);
                if (unit && unit->isAlive())
                {
+                    // prevent Chillblains self apply at load(when Frost Fever passive is cast on self)
+                    if ((*i)->GetId() == 50043 && m_caster == unit)
+                        continue;
+
                    SpellEntry const *auraSpellInfo = (*i)->GetSpellProto();
                    uint32 auraSpellIdx = (*i)->GetEffIndex();
                    // Calculate chance at that moment (can be depend for example from combo points)
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 2d05658..46be355 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -7853,6 +7853,13 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, Aura* triggeredB
                return false;
            break;
        }
+        // Frost Fever proc from Chains of Ice
+        case 55095:
+        {
+            if (pVictim == this)
+                return false;
+            break;
+        }
        // Lock and Load
        case 56453:
        {

Link to comment
Share on other sites

  • 1 year later...
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use