Jump to content

[patch] Spell 41350 And 41337


Guest megamage

Recommended Posts

These two are enemy area aura. Spell 41350 periodicly decrease enemy's max mana. Spell 41337 periodicly add enemy's damage and its dot damage increase per tick.

Index: SpellAuras.cpp
===================================================================
--- SpellAuras.cpp        (revision 6335)
+++ SpellAuras.cpp        (working copy)
@@ -1593,8 +1593,21 @@
//                                        case 40867: break;
//                                        // Prismatic Shield
//                                        case 40879: break;
-//                                        // Aura of Desire
-//                                        case 41350: break;
+//                                    // Aura of Desire
+                                        case 41350:
+                                        {
+                                                Unit::AuraList const& mMod = m_target->GetAurasByType(SPELL_AURA_MOD_INCREASE_ENERGY_PERCENT);
+                                                for(Unit::AuraList::const_iterator i = mMod.begin(); i != mMod.end(); ++i)
+                                                {
+                                                        if ((*i)->GetId() == 41350)
+                                                        {
+                                                                (*i)->ApplyModifier(false);
+                                                                (*i)->GetModifier()->m_amount -= 5;
+                                                                (*i)->ApplyModifier(true);
+                                                                break;
+                                                        }
+                                                }                                                
+                                        }break;
//                                        // Dementia
//                                        case 41404: break;
//                                        // Chaos Form
@@ -5349,6 +5362,21 @@
                                                }
                                                break;
                                        }
+                                        case 41337:// aura of anger
+                                        {                                                
+                                                Unit::AuraList const& mMod = m_target->GetAurasByType(SPELL_AURA_MOD_DAMAGE_PERCENT_DONE);
+                                                for(Unit::AuraList::const_iterator i = mMod.begin(); i != mMod.end(); ++i)
+                                                {
+                                                        if ((*i)->GetId() == 41337)
+                                                        {
+                                                                (*i)->ApplyModifier(false);
+                                                                (*i)->GetModifier()->m_amount += 5;
+                                                                (*i)->ApplyModifier(true);
+                                                                break;
+                                                        }
+                                                }                                                
+                                                m_modifier.m_amount += 100;
+                                        }break;
                                        default:
                                                break;
                                }

Link to comment
Share on other sites

  • 3 months later...
×
×
  • 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