Skip to content

Instantly share code, notes, and snippets.

@tobmaps
Created May 19, 2011 09:25
Show Gist options
  • Save tobmaps/980471 to your computer and use it in GitHub Desktop.
Save tobmaps/980471 to your computer and use it in GitHub Desktop.
Torment the Weak should work in case attack speed slows
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp
index ec0fdb8..4fcabd3 100755
--- a/src/server/game/Entities/Unit/Unit.cpp
+++ b/src/server/game/Entities/Unit/Unit.cpp
@@ -10421,8 +10421,8 @@ uint32 Unit::SpellDamageBonus(Unit *pVictim, SpellEntry const *spellProto, uint3
}
// Torment the weak
- if (spellProto->SpellFamilyFlags[0]&0x20200021 || spellProto->SpellFamilyFlags[1]& 0x9000)
- if (pVictim->HasAuraType(SPELL_AURA_MOD_DECREASE_SPEED))
+ if (spellProto->SpellFamilyFlags[0] & 0x20600021 || spellProto->SpellFamilyFlags[1] & 0x9000)
+ if (pVictim->HasAuraType(SPELL_AURA_MOD_DECREASE_SPEED) || pVictim->HasAuraType(SPELL_AURA_MOD_MELEE_HASTE))
{
AuraEffectList const& mDumyAuras = GetAuraEffectsByType(SPELL_AURA_DUMMY);
for (AuraEffectList::const_iterator i = mDumyAuras.begin(); i != mDumyAuras.end(); ++i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment