aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnubisss <none@none>2009-05-01 17:29:11 +0200
committerAnubisss <none@none>2009-05-01 17:29:11 +0200
commit08d1d7334f890a075cc72288dc3ad1199954a6de (patch)
treedc86814411118db7cdc24ec62c9258e1f8bf6c4e /src
parent02f56a6ad80bd8389c31a6796b25088047c08e33 (diff)
*Backport from TrinityCore2: [7739] Implement boss spell 38441. Author: NoFantasy
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellEffects.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 37f1dc0a083..15f5833c39b 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -366,7 +366,12 @@ void Spell::SpellDamageSchoolDmg(uint32 effect_idx)
if(!radius) return;
float distance = m_caster->GetDistance2d(unitTarget);
damage = (distance > radius ) ? 0 : (int32)(m_spellInfo->EffectBasePoints[0]*((radius - distance)/radius));
- }break;
+ break;
+ }
+ // Cataclysmic Bolt
+ case 38441:
+ damage = unitTarget->GetMaxHealth() / 2;
+ break;
}
break;
}