fix(Core/PlayerScript): Fix adding XP on quest completion and other overlooks. (#18728)

* fix(Core/PlayerScript): Fix adding XP on quest completion.

* Fix other overlooks.
This commit is contained in:
Anton Popovichenko
2024-04-12 17:12:57 +02:00
committed by GitHub
parent 0e1888ac92
commit c796d9291e
6 changed files with 13 additions and 7 deletions

View File

@@ -91,7 +91,7 @@ bool ScriptMgr::OnIsAffectedBySpellModCheck(SpellInfo const* affectSpell, SpellI
bool ScriptMgr::OnSpellHealingBonusTakenNegativeModifiers(Unit const* target, Unit const* caster, SpellInfo const* spellInfo, float& val)
{
CALL_ENABLED_BOOLEAN_HOOKS(GlobalScript, GLOBALHOOK_ON_SPELL_HEALING_BONUS_TAKEN_NEGATIVE_MODIFIERS, script->OnSpellHealingBonusTakenNegativeModifiers(target, caster, spellInfo, val));
CALL_ENABLED_BOOLEAN_HOOKS_WITH_DEFAULT_FALSE(GlobalScript, GLOBALHOOK_ON_SPELL_HEALING_BONUS_TAKEN_NEGATIVE_MODIFIERS, script->OnSpellHealingBonusTakenNegativeModifiers(target, caster, spellInfo, val));
}
void ScriptMgr::OnLoadSpellCustomAttr(SpellInfo* spell)