Jump to content

[patch][8713] Savage Defense


Auntie Mangos

Recommended Posts

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

Use HandleProcTriggerSpell for amount of triggered spell instead of HandleSchoolAbsorb and also trigger_spell_id instead of icon check.

For which repository revision was the patch created?

8712

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

http://getmangos.eu/community/viewtopic.php?id=10551

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

Me (Corfen)

core patch:

diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index afed0ac..2cf57a8 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -6149,11 +6149,6 @@ void Aura::HandleSchoolAbsorb(bool apply, bool Real)
                        DoneActualBenefit = caster->SpellBaseHealingBonus(GetSpellSchoolMask(m_spellProto)) * 0.75f;
                    }
                    break;
-                case SPELLFAMILY_DRUID:
-                    // Savage Defense (amount store original percent of attack power applied)
-                    if (m_spellProto->SpellIconID == 50)    // only spell with this aura fit
-                        m_modifier.m_amount = int32(m_modifier.m_amount * m_target->GetTotalAttackPowerValue(BASE_ATTACK) / 100);
-                    break;
                default:
                    break;
            }
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 836bc79..8f659f6 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -7235,6 +7235,12 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, Aura* triggeredB
                return false;
            break;
        }
+        // Druid - Savage Defense
+        case 62606:
+        {
+            basepoints[0] = int32(GetTotalAttackPowerValue(BASE_ATTACK) * triggerAmount / 100);
+            break;
+        }
    }

    if( cooldown && GetTypeId()==TYPEID_PLAYER && ((Player*)this)->HasSpellCooldown(trigger_spell_id))

http://pastebin.com/f8ceb730

Link to comment
Share on other sites

  • 39 years later...
Guest
This topic is now closed to further replies.
×
×
  • 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