diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/SpellEffects.cpp | 10 | ||||
| -rw-r--r-- | src/game/Unit.cpp | 11 |
2 files changed, 14 insertions, 7 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index bcd1634ec1c..c3c6f0cbfd4 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -1608,7 +1608,7 @@ void Spell::EffectDummy(uint32 i) uint32 hurt = 0; uint32 heal = 0; - switch(m_spellInfo->Id) + switch (m_spellInfo->Id) { case 47540: hurt = 47758; heal = 47757; break; case 53005: hurt = 53001; heal = 52986; break; @@ -1789,10 +1789,10 @@ void Spell::EffectDummy(uint32 i) if (!unitTarget) return; - int hurt = 0; - int heal = 0; + uint32 hurt = 0; + uint32 heal = 0; - switch(m_spellInfo->Id) + switch (m_spellInfo->Id) { case 20473: hurt = 25912; heal = 25914; break; case 20929: hurt = 25911; heal = 25913; break; @@ -1802,7 +1802,7 @@ void Spell::EffectDummy(uint32 i) case 48824: hurt = 48822; heal = 48820; break; case 48825: hurt = 48823; heal = 48821; break; default: - sLog.outError("Spell::EffectDummy: Spell %u not handled in HS",m_spellInfo->Id); + sLog.outError("Spell::EffectDummy: Spell %u not handled in Holy Shock",m_spellInfo->Id); return; } diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 884463cbc1e..1a2100efb3d 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -7621,11 +7621,18 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, AuraEffect* trig trigger_spell_id = 26470; break; } + // Unyielding Knights + case 38164: + { + if (pVictim->GetEntry() != 19457) // Proc only if you target is Grillok + return false; + break; + } // Deflection case 52420: { - if(GetHealth()*100 / GetMaxHealth() >= 35) - return false; + if (GetHealth()*100 / GetMaxHealth() >= 35) + return false; break; } |
