Jump to content

[patch] Aura 252


Guest qsa
 Share

Recommended Posts

What bug does the patch fix? What features does the patch add?

Implementing aura 252 SPELL_AURA_MOD_HASTE_ALL

Beside being used only as negative, I see no difference from aura 193.

HandleModCombatSpeedPct() handles it just fine.

id    spellname_0
49723    Icy Touch
50349    Icy Touch
52372    Icy Touch
52592    Curse of Fatigue
52657    Temporal Vortex
55313    Icy Touch
55331    Icy Touch
58816    Temporal Vortex
59011    Icy Touch
59131    Icy Touch
59368    Curse of Fatigue
60952    Icy Touch
63118    Frost Bite
63563    Frost Bite

For which repository revision was the patch created?

8542

Who has been writing this patch? Please include either forum user names or email addresses.

Me

diff --git a/src/game/SpellAuraDefines.h b/src/game/SpellAuraDefines.h
index 602a305..4ee6646 100644
--- a/src/game/SpellAuraDefines.h
+++ b/src/game/SpellAuraDefines.h
@@ -294,7 +294,7 @@ enum AuraType
    SPELL_AURA_CONVERT_RUNE = 249,
    SPELL_AURA_MOD_INCREASE_HEALTH_2 = 250,
    SPELL_AURA_MOD_ENEMY_DODGE = 251,
-    SPELL_AURA_252 = 252,
+    SPELL_AURA_MOD_HASTE_ALL = 252,
    SPELL_AURA_MOD_BLOCK_CRIT_CHANCE = 253,
    SPELL_AURA_MOD_DISARM_SHIELD = 254,
    SPELL_AURA_MOD_MECHANIC_DAMAGE_TAKEN_PERCENT = 255,
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index ff6d791..e73ccc4 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -302,7 +302,7 @@ pAuraHandler AuraHandler[TOTAL_AURAS]=
    &Aura::HandleAuraConvertRune,                           //249 SPELL_AURA_CONVERT_RUNE
    &Aura::HandleAuraModIncreaseHealth,                     //250 SPELL_AURA_MOD_INCREASE_HEALTH_2
    &Aura::HandleNULL,                                      //251 SPELL_AURA_MOD_ENEMY_DODGE
-    &Aura::HandleNULL,                                      //252 haste all?
+    &Aura::HandleModCombatSpeedPct,                         //252 SPELL_AURA_MOD_HASTE_ALL - used only in negative spells at the moment
    &Aura::HandleNULL,                                      //253 SPELL_AURA_MOD_BLOCK_CRIT_CHANCE
    &Aura::HandleNULL,                                      //254 SPELL_AURA_MOD_DISARM_SHIELD disarm Shield
    &Aura::HandleNoImmediateEffect,                         //255 SPELL_AURA_MOD_MECHANIC_DAMAGE_TAKEN_PERCENT    implemented in Unit::SpellDamageBonus

Link to comment
Share on other sites

  • 2 weeks later...
  • 5 months later...
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use