DiscordEnduringDisk.lua 874 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --[[
  2. Script Name : Spells/Commoner/DiscordEnduringDisk.lua
  3. Script Author : Skywalker646
  4. Script Date : 2020.04.06 07:04:45
  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, 10978)
  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