aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellAuras.cpp
diff options
context:
space:
mode:
authormaximius <none@none>2009-11-19 19:55:24 -0800
committermaximius <none@none>2009-11-19 19:55:24 -0800
commitf4808f3ff5e8cbe4fc8137bd1ca58eb2b038f76d (patch)
tree1c971d300e8601296bcdb22407ae7dadb24e8747 /src/game/SpellAuras.cpp
parentd7ed79825c1b9cb2ec8a0ca1686ee34d13ae5e2c (diff)
*Merge TC1 r1737 and r1754 by BroodWyrn, fixes spells 45151, 45141, 46394 (Brutallus Burn), closes #179
--HG-- branch : trunk
Diffstat (limited to 'src/game/SpellAuras.cpp')
-rw-r--r--src/game/SpellAuras.cpp23
1 files changed, 15 insertions, 8 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index 367ab474be8..de5cede1e59 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -5807,22 +5807,22 @@ void AuraEffect::PeriodicTick()
return;
// Consecrate ticks can miss and will not show up in the combat log
- if( GetSpellProto()->Effect[GetEffIndex()]==SPELL_EFFECT_PERSISTENT_AREA_AURA &&
- pCaster->SpellHitResult(m_target,GetSpellProto(),false)!=SPELL_MISS_NONE)
+ if (GetSpellProto()->Effect[GetEffIndex()] == SPELL_EFFECT_PERSISTENT_AREA_AURA &&
+ pCaster->SpellHitResult(m_target,GetSpellProto(),false) != SPELL_MISS_NONE)
return;
// Check for immune (not use charges)
- if(m_target->IsImmunedToDamage(GetSpellProto()))
+ if (m_target->IsImmunedToDamage(GetSpellProto()))
return;
// some auras remove at specific health level or more
- if(m_auraName==SPELL_AURA_PERIODIC_DAMAGE)
+ if (m_auraName == SPELL_AURA_PERIODIC_DAMAGE)
{
- switch(GetId())
+ switch (GetId())
{
case 43093: case 31956: case 38801: // Grievous Wound
case 35321: case 38363: case 39215: // Gushing Wound
- if(m_target->GetHealth() == m_target->GetMaxHealth() )
+ if(m_target->GetHealth() == m_target->GetMaxHealth())
{
m_target->RemoveAurasDueToSpell(GetId());
return;
@@ -5834,14 +5834,14 @@ void AuraEffect::PeriodicTick()
GetEffIndex() < 2 && GetSpellProto()->Effect[GetEffIndex()]==SPELL_EFFECT_DUMMY ?
pCaster->CalculateSpellDamage(GetSpellProto(),GetEffIndex()+1,GetSpellProto()->EffectBasePoints[GetEffIndex()+1],m_target) :
100;
- if(m_target->GetHealth()*100 >= m_target->GetMaxHealth()*percent )
+ if(m_target->GetHealth()*100 >= m_target->GetMaxHealth()*percent)
{
m_target->RemoveAurasDueToSpell(GetId());
return;
}
break;
}
- case 41337:// Aura of Anger
+ case 41337: // Aura of Anger
{
if (AuraEffect * aurEff = GetParentAura()->GetPartAura(1))
{
@@ -5852,6 +5852,13 @@ void AuraEffect::PeriodicTick()
m_amount = 100 * m_tickNumber;
break;
}
+ // Brutallus Burn
+ case 46394:
+ {
+ if (m_tickNumber % 11 == 0)
+ m_amount *= 2;
+ break;
+ }
default:
break;
}