DiskChaoticEnergy.lua 798 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. end
  24. function remove(Caster, Target)
  25. SetMount(Caster, 0)
  26. RemoveSpellBonus(Caster)
  27. RemoveSkillBonus(Caster)
  28. end