mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-29 05:11:55 +01:00
[7739] Implement boss spell 38441. Author: NoFantasy
--HG-- branch : trunk
This commit is contained in:
@@ -372,7 +372,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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user