Freeze.lua 641 B

123456789101112131415161718192021222324
  1. --[[
  2. Script Name : Spells/Mage/Sorcerer/Freeze.lua
  3. Script Author : neatz09
  4. Script Date : 2020.11.05 02:11:24
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Inflicts 133 - 162 cold damage on target
  9. -- Stuns target
  10. -- If Target is not Epic
  11. -- Resistibility increases against targets higher than level 29.
  12. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  13. Say(Caster, "Resistability not implemented.")
  14. if not IsEpic() then
  15. AddControlEffect(Target, 4)
  16. end
  17. SpellDamage(Target, DmgType, MinVal, MaxVal)
  18. end
  19. function remove(Caster, Target)
  20. RemoveControlEffect(Target, 4)
  21. end