Jump to content

[BUG] Cut to the Chace doesnt involve Imp Slice & Dice


Guest Forusim

Recommended Posts

  • 2 weeks later...

I found the sourcecode, but i have no idea, if this will work and how to do it without hard coded values.

// Cut to the Chase
           if (dummySpell->SpellIconID == 2909)
           {
               // "refresh your Slice and Dice duration to its 5 combo point maximum"
               // lookup Slice and Dice
               AuraList const& sd = GetAurasByType(SPELL_AURA_MOD_HASTE);
               for(AuraList::const_iterator itr = sd.begin(); itr != sd.end(); ++itr)
               {
                   SpellEntry const *spellProto = (*itr)->GetSpellProto();
                   if (spellProto->SpellFamilyName == SPELLFAMILY_ROGUE &&
                       (spellProto->SpellFamilyFlags & UI64LIT(0x0000000000040000)))
                   {
+                        if (pVictim->HasAura(14165) //imp S&D rank 1
+                          (*itr)-> 1.25 * SetAuraMaxDuration(GetSpellMaxDuration(spellProto));
+                      else if (pVictim->HasAura(14166) //imp S&D rank 2
+                           (*itr)-> 1.50 * SetAuraMaxDuration(GetSpellMaxDuration(spellProto));
+                       else
                            (*itr)->SetAuraMaxDuration(GetSpellMaxDuration(spellProto));
+
                       (*itr)->RefreshAura();
                       return true;
                   }
               }
               return false;
           }

Any help is much appreciated.

Link to comment
Share on other sites

×
×
  • 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