diff options
| author | ariel- <ariel-@users.noreply.github.com> | 2017-12-15 00:14:55 -0300 |
|---|---|---|
| committer | funjoker <funjoker109@gmail.com> | 2021-03-15 20:17:31 +0100 |
| commit | 44c8ccadd701c1a4bc0ce08ee53a7a7ba55289d4 (patch) | |
| tree | 51509fbe5b77c2b6abfadc53e4caf19c9ae71000 /src/server/game/Spells/SpellMgr.cpp | |
| parent | d9b145615dd2bafe1ae74e6dc11c9b86a0fb6f28 (diff) | |
Core/Auras: periodics refactor part 5: ported periodic trigger spell auras to scripts
(cherry picked from commit a36e804ae4639be40be17282e6c79fad9a769517)
Diffstat (limited to 'src/server/game/Spells/SpellMgr.cpp')
| -rw-r--r-- | src/server/game/Spells/SpellMgr.cpp | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp index 8c2c1f69853..f0d4d14bdd8 100644 --- a/src/server/game/Spells/SpellMgr.cpp +++ b/src/server/game/Spells/SpellMgr.cpp @@ -3244,6 +3244,45 @@ void SpellMgr::LoadSpellInfoCorrections() }); } + // specific code for cases with no trigger spell provided in field + { + // Brood Affliction: Bronze + ApplySpellFix({ 23170 }, [](SpellInfo* spellInfo) + { + const_cast<SpellEffectInfo*>(spellInfo->GetEffect(EFFECT_0))->TriggerSpell = 23171; + }); + + // Feed Captured Animal + ApplySpellFix({ 29917 }, [](SpellInfo* spellInfo) + { + const_cast<SpellEffectInfo*>(spellInfo->GetEffect(EFFECT_0))->TriggerSpell = 29916; + }); + + // Remote Toy + ApplySpellFix({ 37027 }, [](SpellInfo* spellInfo) + { + const_cast<SpellEffectInfo*>(spellInfo->GetEffect(EFFECT_0))->TriggerSpell = 37029; + }); + + // Eye of Grillok + ApplySpellFix({ 38495 }, [](SpellInfo* spellInfo) + { + const_cast<SpellEffectInfo*>(spellInfo->GetEffect(EFFECT_0))->TriggerSpell = 38530; + }); + + // Tear of Azzinoth Summon Channel - it's not really supposed to do anything, and this only prevents the console spam + ApplySpellFix({ 39857 }, [](SpellInfo* spellInfo) + { + const_cast<SpellEffectInfo*>(spellInfo->GetEffect(EFFECT_0))->TriggerSpell = 39856; + }); + + // Personalized Weather + ApplySpellFix({ 46736 }, [](SpellInfo* spellInfo) + { + const_cast<SpellEffectInfo*>(spellInfo->GetEffect(EFFECT_1))->TriggerSpell = 46737; + }); + } + ApplySpellFix({ 63026, // Summon Aspirant Test NPC (HACK: Target shouldn't be changed) 63137 // Summon Valiant Test (HACK: Target shouldn't be changed; summon position should be untied from spell destination) |
