DiscordPrescientDisk.lua 763 B

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