DiscordPrescientDisk.lua 873 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. --[[
  2. Script Name : Spells/Commoner/DiscordPrescientDisk.lua
  3. Script Author : Skywalker646
  4. Script Date : 2020.04.06 08:04:22
  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)
  15. -- Summons a mount
  16. SetMount(Caster, 10984)
  17. Say(Caster, "Might not be accurate model")
  18. -- Increases your ground speed by 130%
  19. AddSpellBonus(Caster, 611, Speed, Speed)
  20. --Increases Max Heath of caster by 300.0
  21. AddSpellBonus(Caster, 606, Health)
  22. -- Reduces maximum falling speed of caster.
  23. AddControlEffect(Caster, 13)
  24. end
  25. function remove(Caster, Target)
  26. SetMount(Caster, 0)
  27. RemoveSpellBonus(Caster)
  28. RemoveSkillBonus(Caster)
  29. RemoveControlEffect(Caster, 13)
  30. end