aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-07-16 10:18:35 +0800
committermegamage <none@none>2009-07-16 10:18:35 +0800
commit43ac2c4cb44fb211fdd3142ec45fea9e53308ccd (patch)
tree6103a6851b6509d921346d76b4a300a49a9b2190 /src/game/Unit.cpp
parent27bbca78a16eb6baae9e3eb9e7d864aad883453d (diff)
[8172] Drop dead code for 33878/33876 and ranks. Author: VladimirMangos
Detected by spell_check: not have now dummy aura but have SPELL_AURA_MOD_MECHANIC_DAMAGE_TAKEN_PERCEN for proper mechanic. --HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index eede4b4bed2..67cd87db8a5 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -5907,7 +5907,7 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger
triggered_spell_id = 40446;
chance = 25.0f;
}
- // Mangle (cat/bear)
+ // Mangle (Bear) and Mangle (Cat)
else if( procSpell->SpellFamilyFlags[1] & 0x00000440)
{
triggered_spell_id = 40452;
@@ -9324,8 +9324,7 @@ uint32 Unit::SpellDamageBonus(Unit *pVictim, SpellEntry const *spellProto, uint3
TakenTotalMod *= ((*i)->GetAmount()+100.0f)/100.0f;
// Mod damage from spell mechanic
- uint32 mechanicMask = GetAllSpellMechanicMask(spellProto);
- if (mechanicMask)
+ if (uint32 mechanicMask = GetAllSpellMechanicMask(spellProto))
{
AuraEffectList const& mDamageDoneMechanic = pVictim->GetAurasByType(SPELL_AURA_MOD_MECHANIC_DAMAGE_TAKEN_PERCENT);
for(AuraEffectList::const_iterator i = mDamageDoneMechanic.begin();i != mDamageDoneMechanic.end(); ++i)