SelfContainedCloud.lua 733 B

123456789101112131415161718192021222324252627282930313233343536
  1. --[[
  2. Script Name : Spells/Commoner/SelfContainedCloud.lua
  3. Script Author : neatz09
  4. Script Date : 2019.11.19 08:11:48
  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. -- Summons a mount to ride
  15. -- Increases your ground speed by 130%
  16. -- Reduces maximum falling speed of caster
  17. function cast(Caster, Target, Speed)
  18. SetMount(Caster, 14759)
  19. --Increases your ground speed by 130%
  20. AddSpellBonus(Caster, 611, Speed)
  21. AddControlEffect(Caster, 13)
  22. end
  23. function remove(Caster, Target)
  24. SetMount(Caster, 0)
  25. RemoveSpellBonus(Caster)
  26. RemoveControlEffect(Caster, 13)
  27. end