Jump to content

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


Recommended Posts

Posted

Mangos Version: 9605

Custom Patches: Broadcaster

SD2 Version: 1644

Database Name and Version : UDB 388

How it SHOULD work: Cut to the Chase should take Imp S & D into account and refresh to 32 seconds

How it DOES work: Only refresh to 21 seconds, like without improvement.

Any Idea how to solve it?

Thanks in advance.

  • 2 weeks later...
Posted

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.

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