aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Spells/SpellMgr.cpp
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2017-12-14 11:42:42 -0300
committerfunjoker <funjoker109@gmail.com>2021-03-15 20:17:31 +0100
commit5f9e0d92d563c983c229db1569414916b3dce51e (patch)
tree79c906bdf9d526646c26f827db677a566460bf43 /src/server/game/Spells/SpellMgr.cpp
parentfe362cf2c9d5c71db4698480ce26cb35dbc58f28 (diff)
Core/Auras: periodics refactor part 1:
- Don't skip ticks if diff is greater than amplitude - Fixed spells without ampltude in DBC (cherry picked from commit 5d91beb1dbc795382a12ec05f6e72c76b195b141)
Diffstat (limited to 'src/server/game/Spells/SpellMgr.cpp')
-rw-r--r--src/server/game/Spells/SpellMgr.cpp37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp
index 8e4de205301..8c2c1f69853 100644
--- a/src/server/game/Spells/SpellMgr.cpp
+++ b/src/server/game/Spells/SpellMgr.cpp
@@ -3207,6 +3207,43 @@ void SpellMgr::LoadSpellInfoCorrections()
{
uint32 oldMSTime = getMSTime();
+ // Some spells have no amplitude set
+ {
+ ApplySpellFix({
+ 6727, // Poison Mushroom
+ 7331, // Healing Aura (TEST) (Rank 1)
+ /*
+ 30400, // Nether Beam - Perseverance
+ Blizzlike to have it disabled? DBC says:
+ "This is currently turned off to increase performance. Enable this to make it fire more frequently."
+ */
+ 34589, // Dangerous Water
+ 52562, // Arthas Zombie Catcher
+ 57550, // Tirion Aggro
+ 65755
+ }, [](SpellInfo* spellInfo)
+ {
+ const_cast<SpellEffectInfo*>(spellInfo->GetEffect(EFFECT_0))->ApplyAuraPeriod = 1 * IN_MILLISECONDS;
+ });
+
+ ApplySpellFix({
+ 24707, // Food
+ 26263, // Dim Sum
+ 29055, // Refreshing Red Apple
+ 37504 // Karazhan - Chess NPC AI, action timer
+ }, [](SpellInfo* spellInfo)
+ {
+ // first effect has correct amplitude
+ const_cast<SpellEffectInfo*>(spellInfo->GetEffect(EFFECT_1))->ApplyAuraPeriod = const_cast<SpellEffectInfo*>(spellInfo->GetEffect(EFFECT_0))->ApplyAuraPeriod;
+ });
+
+ // Vomit
+ ApplySpellFix({ 43327 }, [](SpellInfo* spellInfo)
+ {
+ const_cast<SpellEffectInfo*>(spellInfo->GetEffect(EFFECT_1))->ApplyAuraPeriod = 1 * IN_MILLISECONDS;
+ });
+ }
+
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)