MedusaGaze.lua 777 B

1234567891011121314151617181920212223242526
  1. --[[
  2. Script Name : Spells/Mage/Enchanter/Coercer/MedusaGaze.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.03.14 05:03:17
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  9. -- Inflicts 13 - 16 mental damage on target
  10. if MaxVal ~= nil and MinVal < MaxVal then
  11. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  12. else
  13. SpellDamage(Target, DmgType, MinVal)
  14. end
  15. -- Stuns target
  16. AddControlEffect(Target, 4)
  17. -- Epic targets gain an immunity to Stun effects of 16.5 seconds and duration is reduced to 1.8 seconds.
  18. -- Resistibility increases against targets higher than level 29.
  19. end
  20. function remove(Caster, Target)
  21. RemoveControlEffect(Target, 4)
  22. end