DauntingGaze.lua 664 B

12345678910111213141516171819202122232425
  1. --[[
  2. Script Name : Spells/Mage/Enchanter/DauntingGaze.lua
  3. Script Author : neatz09
  4. Script Date : 2020.11.03 11:11:26
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Decreases power of target by 79 - 97
  9. -- Stuns target
  10. -- If Target is not Epic
  11. -- Resistibility increases against targets higher than level 29.
  12. function cast(Caster, Target, PwrMax, PwrMin)
  13. local Pwr = math.random(PwrMin, PwrMax)
  14. Say(Caster, "Resistability not implemented")
  15. if not IsEpic(Target) then
  16. AddControlEffect(Target, 4)
  17. end
  18. ModifyPower(Target, Pwr)
  19. end
  20. function remove(Caster, Target)
  21. RemoveControlEffect(Target, 4)
  22. end