123456789101112131415161718192021222324252627282930313233343536 |
- --[[
- Script Name : Spells/Priest/Cleric/RadiantStrike.lua
- Script Author : neatz09
- Script Date : 2020.11.10 10:11:00
- Script Purpose :
- :
- --]]
- -- Info from spell_display_effects (remove from script when done)
- -- Inflicts 37 - 45 divine damage on target
- -- Inflicts 37 - 45 divine damage on target
- -- If target is undead
- function cast(Caster, Target, DmgType, MinVal, MaxVal)
-
- Level = GetLevel(Caster)
- SpellLevel = 11
- Mastery = SpellLevel + 10
- StatBonus = GetInt(Caster) / 10
-
- if Level < Mastery then
- LvlBonus = Level - SpellLevel
- else LvlBonus = Mastery - SpellLevel
- end
- DmgBonus = LvlBonus + StatBonus
- MaxDmg = math.floor(DmgBonus) * 2 + MaxVal
- MinDmg = math.floor(DmgBonus) * 2 + MaxVal
-
- SpellDamage(Target, DmgType, MinDmg, MaxDmg)
-
- if GetRaceBaseType(Target) == 333 then
- SpellDamage(Target, Dmgtype, MinDmg, MaxDmg)
- end
- end
|