BlueNightmareBlueSaddle.lua 791 B

1234567891011121314151617181920212223242526272829303132
  1. --[[
  2. Script Name : Spells/Commoner/BlueNightmareBlueSaddle.lua
  3. Script Author : neatz09
  4. Script Date : 2019.11.16 01:11:47
  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, Mit)
  15. SetMount(Caster, 7183)
  16. SetMountColor(Caster, 0, 0, 0, 0, 0, 255)
  17. --Increases your ground speed by 135%
  18. AddSpellBonus(Caster, 611, Speed)
  19. --Increases Mitigation of caster vs elemental, noxious and arcane damage by 450
  20. AddSpellBonus(Caster, 201, Mit)
  21. AddSpellBonus(Caster, 202, Mit)
  22. AddSpellBonus(Caster, 203, Mit)
  23. end
  24. function remove(Caster, Target)
  25. RemoveSpellBonus(Caster)
  26. SetMount(Caster, 0)
  27. end