*Backport from TrinityCore2: [7739] Implement boss spell 38441. Author: NoFantasy

--HG--
branch : trunk
This commit is contained in:
Anubisss
2009-05-01 17:29:11 +02:00
parent 02f56a6ad8
commit 08d1d7334f
+6 -1
View File
@@ -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;
}