mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 00:18:43 +01:00
Core/Spells: Fixed Dragon's Breath with Living Bomb explosion (#20622)
Close: #19949
This commit is contained in:
3
sql/updates/world/3.3.5/2017_10_16_04_world.sql
Normal file
3
sql/updates/world/3.3.5/2017_10_16_04_world.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
DELETE FROM `spell_script_names` WHERE `scriptname`='spell_mage_dragon_breath';
|
||||
INSERT INTO `spell_script_names` (`spell_id`,`scriptname`) VALUES
|
||||
(-31661,'spell_mage_dragon_breath');
|
||||
@@ -74,7 +74,8 @@ enum MageSpellIcons
|
||||
{
|
||||
SPELL_ICON_MAGE_SHATTERED_BARRIER = 2945,
|
||||
SPELL_ICON_MAGE_PRESENCE_OF_MIND = 139,
|
||||
SPELL_ICON_MAGE_CLEARCASTING = 212
|
||||
SPELL_ICON_MAGE_CLEARCASTING = 212,
|
||||
SPELL_ICON_MAGE_LIVING_BOMB = 3000
|
||||
};
|
||||
|
||||
// Incanter's Absorbtion
|
||||
@@ -408,6 +409,26 @@ class spell_mage_combustion_proc : public SpellScriptLoader
|
||||
}
|
||||
};
|
||||
|
||||
// -31661 - Dragon's Breath
|
||||
class spell_mage_dragon_breath : public AuraScript
|
||||
{
|
||||
PrepareAuraScript(spell_mage_dragon_breath);
|
||||
|
||||
bool CheckProc(ProcEventInfo& eventInfo)
|
||||
{
|
||||
// Dont proc with Living Bomb explosion
|
||||
SpellInfo const* spellInfo = eventInfo.GetSpellInfo();
|
||||
if (spellInfo && spellInfo->SpellIconID == SPELL_ICON_MAGE_LIVING_BOMB && spellInfo->SpellFamilyName == SPELLFAMILY_MAGE)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
void Register() override
|
||||
{
|
||||
DoCheckProc += AuraCheckProcFn(spell_mage_dragon_breath::CheckProc);
|
||||
}
|
||||
};
|
||||
|
||||
// -11185 - Improved Blizzard
|
||||
class spell_mage_imp_blizzard : public SpellScriptLoader
|
||||
{
|
||||
@@ -1295,6 +1316,7 @@ void AddSC_mage_spell_scripts()
|
||||
new spell_mage_cold_snap();
|
||||
new spell_mage_combustion();
|
||||
new spell_mage_combustion_proc();
|
||||
RegisterAuraScript(spell_mage_dragon_breath);
|
||||
new spell_mage_imp_blizzard();
|
||||
new spell_mage_imp_mana_gems();
|
||||
new spell_mage_empowered_fire();
|
||||
|
||||
Reference in New Issue
Block a user