mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 08:28:32 +01:00
Scripts/Spells: Fixed Demonic Pact not increasing spell healing
Closes #23019
This commit is contained in:
@@ -1054,9 +1054,10 @@ class spell_warl_demonic_pact : public SpellScriptLoader
|
||||
{
|
||||
if (AuraEffect* aurEff = owner->GetDummyAuraEffect(SPELLFAMILY_WARLOCK, WARLOCK_ICON_ID_DEMONIC_PACT, EFFECT_0))
|
||||
{
|
||||
int32 bp0 = static_cast<int32>((aurEff->GetAmount() * owner->SpellBaseDamageBonusDone(SPELL_SCHOOL_MASK_MAGIC) + 100.0f) / 100.0f);
|
||||
int32 bp = static_cast<int32>((aurEff->GetAmount() * owner->SpellBaseDamageBonusDone(SPELL_SCHOOL_MASK_MAGIC) + 100.0f) / 100.0f);
|
||||
CastSpellExtraArgs args(aurEff);
|
||||
args.AddSpellBP0(bp0);
|
||||
args.AddSpellBP0(bp);
|
||||
args.AddSpellMod(SPELLVALUE_BASE_POINT1, bp);
|
||||
owner->CastSpell(nullptr, SPELL_WARLOCK_DEMONIC_PACT_PROC, args);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user