Jump to content

[fix]t10 Balance Druid set bonuses


Guest laise

Recommended Posts

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

fixes 2/4 pieces bonuses

For which repository revision was the patch created?

9427

Is there a thread in the bug report section or at lighthouse? If yes, please add a link to the thread.

haven't seen any

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

me

diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index ce1e8ed..0611853 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -2632,6 +2632,9 @@ void Spell::cast(bool skipCheck)
            // Faerie Fire (Feral)
            if (m_spellInfo->Id == 16857 && m_caster->m_form != FORM_CAT)
                AddTriggeredSpell(60089);
+            // Item - Druid T10 Balance 2P Bonus
+            else if (m_spellInfo->Id == 16870 && m_caster->HasAura(70718))
+                AddTriggeredSpell(70721);
            break;
        }
        case SPELLFAMILY_ROGUE:
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 0eb6282..effa97a 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -6069,6 +6069,14 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
                    triggered_spell_id = 54755;
                    break;
                }
+                // Item - Druid T10 Balance 4P Bonus
+                case 70723:
+                {
+                    basepoints0 = int32( triggerAmount * damage / 100 );
+                    basepoints0 = int32( basepoints0 / 2);
+                    triggered_spell_id = 71023;
+                    break;
+                }
            }
            // Eclipse
            if (dummySpell->SpellIconID == 2856)

DELETE FROM `spell_proc_event` WHERE entry = 70723;
INSERT INTO `spell_proc_event` (`entry`, `SchoolMask`, `SpellFamilyName`, `SpellFamilyMask0`, `SpellFamilyMask1`, `SpellFamilyMask2`, `procFlags`, `procEx`, `ppmRate`, `CustomChance`, `Cooldown`) VALUES('70723','0','7',0x00000005,'0','0','0','2','0','0','0');

Link to comment
Share on other sites

  • 1 year 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