diff options
author | Andy@conmuc-l03 <none@none> | 2009-04-19 20:11:26 +0200 |
---|---|---|
committer | Andy@conmuc-l03 <none@none> | 2009-04-19 20:11:26 +0200 |
commit | f90706f5af52696764f3d1a676dd1c4c2c22c52a (patch) | |
tree | b39f0aeb1cd44c3f0edc73a33582a12a5470ca4f /src | |
parent | d363b6affa38d87a9305a12061812162ac5f758d (diff) |
workaround for demoshout & piercing howl to remove stealth
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/SpellAuras.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 5b75da79a21..eeb1785f5c3 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -3431,6 +3431,7 @@ void Aura::HandleAuraModDecreaseSpeed(bool /*apply*/, bool Real) if(!Real) return; + m_target->RemoveSpellsCausingAura(SPELL_AURA_MOD_STEALTH); m_target->UpdateSpeed(MOVE_RUN, true); m_target->UpdateSpeed(MOVE_SWIM, true); m_target->UpdateSpeed(MOVE_FLIGHT, true); @@ -4628,6 +4629,28 @@ void Aura::HandleRangedAmmoHaste(bool apply, bool Real) void Aura::HandleAuraModAttackPower(bool apply, bool Real) { m_target->HandleStatModifier(UNIT_MOD_ATTACK_POWER, TOTAL_VALUE, float(GetModifierValue()), apply); + if(apply) + switch(m_spellProto->Id){ + // Warrior & Druid Demoshout should remove stealth + case 1160: + case 6190: + case 11554: + case 11555: + case 11556: + case 25202: + case 25203: + case 47437: //WotLK spell + case 99: + case 1735: + case 9490: + case 9747: + case 9898: + case 26998: + case 48559: //WotLK spell + case 48560: //WotLK spell + m_target->RemoveSpellsCausingAura(SPELL_AURA_MOD_STEALTH); + break; + } } void Aura::HandleAuraModRangedAttackPower(bool apply, bool Real) |