DiskChaoticEnergy.lua 912 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --[[
  2. Script Name : Spells/Commoner/DiskChaoticEnergy.lua
  3. Script Author : Skywalker646
  4. Script Date : 2020.04.06 08:04:23
  5. Script Purpose :
  6. :
  7. --]]
  8. function precast(Caster)
  9. if GetMount(Caster) > 0 then
  10. return false
  11. end
  12. return true
  13. end
  14. function cast(Caster, Target, Speed, Health, Mana)
  15. -- Summons a mount
  16. SetMount(Caster, 12992)
  17. -- Increases your ground speed by 130%
  18. AddSpellBonus(Caster, 611, Speed, Speed)
  19. --Increases Max Heath of caster by 300.0
  20. AddSpellBonus(Caster, 606, Health)
  21. --Increases Max Heath of caster by 300.0
  22. AddSpellBonus(Caster, 619, Mana)
  23. -- Reduces maximum falling speed of caster.
  24. AddControlEffect(Caster, 13)
  25. end
  26. function remove(Caster, Target)
  27. SetMount(Caster, 0)
  28. RemoveSpellBonus(Caster)
  29. RemoveSkillBonus(Caster)
  30. RemoveControlEffect(Caster, 13)
  31. end