From 950b979ab74abdd9995324fb03e2a0c8dbfef63c Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Fri, 10 Aug 2018 14:55:27 +0200 Subject: [PATCH] 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 --- sql/updates/world/custom/custom_2018_08_10_00_world.sql | 4 ++++ src/server/game/Entities/Unit/Unit.cpp | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 sql/updates/world/custom/custom_2018_08_10_00_world.sql diff --git a/sql/updates/world/custom/custom_2018_08_10_00_world.sql b/sql/updates/world/custom/custom_2018_08_10_00_world.sql new file mode 100644 index 00000000000..c58cf590b99 --- /dev/null +++ b/sql/updates/world/custom/custom_2018_08_10_00_world.sql @@ -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); diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index fd06bb90530..7da629ad116 100644 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -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: