oofalasguard.lua 544 B

12345678910111213141516171819202122
  1. --[[
  2. Script Name : Spells/oofalasguard.lua
  3. Script Author : Premierio015
  4. Script Date : 2022.04.22 10:04:51
  5. Script Purpose :
  6. :
  7. --]]
  8. --[[ Info from spell_display_effects (remove from script when done)
  9. *Inflicts 44-58 magic damage on target
  10. --]]
  11. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  12. if MaxVal ~= nil and MinVal < MaxVal then
  13. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  14. else
  15. SpellDamage(Target, DmgType, MinVal)
  16. end
  17. end