Jump to content

[Backport][0.12] parry and avoid give no rage


Guest Hundekuchen

Recommended Posts

With patch 3.1 blizzard added that parry and avoid give rage... not before

diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 49d1786..0618ad3 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -558,12 +558,12 @@ uint32 Unit::DealDamage(Unit *pVictim, uint32 damage, CleanDamage const* cleanDa

    if(!damage)
    {
-        // Rage from physical damage received .
-        if(cleanDamage && cleanDamage->damage && (damageSchoolMask & SPELL_SCHOOL_MASK_NORMAL) && pVictim->GetTypeId() == TYPEID_PLAYER && (pVictim->getPowerType() == POWER_RAGE))
+        // Rage only from block, not from parry and avoid
+        if(cleanDamage && cleanDamage->hitOutCome != MELEE_HIT_PARRY && cleanDamage->hitOutCome != MELEE_HIT_DODGE && cleanDamage->damage && (damageSchoolMask & SPELL_SCHOOL_MASK_NORMAL) && pVictim->GetTypeId() == TYPEID_PLAYER && (pVictim->getPowerType() == POWER_RAGE))
            ((Player*)pVictim)->RewardRage(cleanDamage->damage, 0, false);
-
        return 0;
    }
+

best regards,

Hundekuchen

Link to comment
Share on other sites

  • 2 weeks 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