mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 17:19:07 +00:00
fix(Scripts/Spell): combustion will now properly go on cooldown when the buff is manually cancelled (#7185)
* fix(CORE/Spell): Combustion will now properly go on cooldown when the buff is manually cancelled * fix(DB/Scripts): Added the script for combustion * Update spell_mage.cpp * Update src/server/scripts/Spells/spell_mage.cpp Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
This commit is contained in:
@@ -23,6 +23,7 @@ enum MageSpells
|
||||
// Ours
|
||||
SPELL_MAGE_BURNOUT_TRIGGER = 44450,
|
||||
SPELL_MAGE_IMPROVED_BLIZZARD_CHILLED = 12486,
|
||||
SPELL_MAGE_COMBUSTION = 11129,
|
||||
|
||||
// Theirs
|
||||
SPELL_MAGE_COLD_SNAP = 11958,
|
||||
@@ -494,6 +495,37 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
class spell_mage_combustion_proc : public SpellScriptLoader
|
||||
{
|
||||
public:
|
||||
spell_mage_combustion_proc() : SpellScriptLoader("spell_mage_combustion_proc") {}
|
||||
|
||||
class spell_mage_combustion_proc_AuraScript : public AuraScript
|
||||
{
|
||||
PrepareAuraScript(spell_mage_combustion_proc_AuraScript);
|
||||
|
||||
bool Validate(SpellInfo const* /*spellInfo*/) override
|
||||
{
|
||||
return ValidateSpellInfo({ SPELL_MAGE_COMBUSTION });
|
||||
}
|
||||
|
||||
void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
|
||||
{
|
||||
GetTarget()->RemoveAurasDueToSpell(SPELL_MAGE_COMBUSTION);
|
||||
}
|
||||
|
||||
void Register() override
|
||||
{
|
||||
AfterEffectRemove += AuraEffectRemoveFn(spell_mage_combustion_proc_AuraScript::OnRemove, EFFECT_0, SPELL_AURA_ADD_FLAT_MODIFIER, AURA_EFFECT_HANDLE_REAL);
|
||||
}
|
||||
};
|
||||
|
||||
AuraScript* GetAuraScript() const override
|
||||
{
|
||||
return new spell_mage_combustion_proc_AuraScript();
|
||||
}
|
||||
};
|
||||
|
||||
// Theirs
|
||||
// Incanter's Absorbtion
|
||||
class spell_mage_incanters_absorbtion_base_AuraScript : public AuraScript
|
||||
@@ -1135,6 +1167,7 @@ void AddSC_mage_spell_scripts()
|
||||
new spell_mage_pet_scaling();
|
||||
new spell_mage_brain_freeze();
|
||||
new spell_mage_glyph_of_eternal_water();
|
||||
new spell_mage_combustion_proc();
|
||||
|
||||
// Theirs
|
||||
new spell_mage_blast_wave();
|
||||
|
||||
Reference in New Issue
Block a user