Core/Spells: updated fixed Renewed Hope crit chance bonus.

* Inner Focus will now get consumed when one of the affected healing spells get getting casted

Closes #12
Closes #15
This commit is contained in:
Ovahlord
2018-08-10 14:55:27 +02:00
parent d66347a1d3
commit 950b979ab7
2 changed files with 7 additions and 3 deletions

View File

@@ -0,0 +1,4 @@
DELETE FROM `spell_proc` WHERE `SpellId` IN (89485, -57470);
INSERT INTO `spell_proc` (`SpellId`, `SpellFamilyName`, `SpellFamilyMask0`, `SpellFamilyMask1`, `SpellFamilyMask2`, `ProcFlags`, `SpellTypeMask`, `SpellPhaseMask`, `HitMask`, `AttributesMask`, `Cooldown`, `Charges`, `Chance`) VALUES
(89485, 6, 0x00000200 | 0x00000800 | 0x00001000, 0x00000004, 0, 0x00004000, 2, 1, 0, 0, 0, 1, 100),
(-57470, 0, 0, 0, 0, 0, 2, 1, 0, 16, 0, 0, 0);

View File

@@ -7107,9 +7107,9 @@ float Unit::GetUnitSpellCriticalChance(Unit* victim, SpellInfo const* spellProto
if (victim->HasAuraState(AURA_STATE_HEALTHLESS_35_PERCENT, spellProto, this))
crit_chance += (*i)->GetAmount();
break;
case 7997: // Renewed Hope
case 7998:
if (victim->HasAura(6788))
case 57470: // Renewed Hope
case 57472:
if (victim->HasAura(6788) || victim->HasAura(47930))
crit_chance += (*i)->GetAmount();
break;
default: