DivineSmite.lua 378 B

123456789101112131415
  1. --[[
  2. Script Name : Spells/Priest/Cleric/Templar/DivineSmite.lua
  3. Script Purpose : Templar Direct Damage spell
  4. Script Author : Zcoretri
  5. Script Date : 2010.2.14
  6. --]]
  7. function cast(Caster, Target, DmgType, MinDmg, MaxDmg)
  8. if MaxDmg ~= nil and MinDmg < MaxDmg then
  9. dmgAmount = math.random(MinDmg, MaxDmg)
  10. SpellDamage(Target, DmgType, dmgAmount)
  11. end
  12. end