YkeshanSpellbearGoldenBlackArmor.lua 851 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --[[
  2. Script Name : Spells/Commoner/YkeshanSpellbearGoldenBlackArmor.lua
  3. Script Author : Skywalker646
  4. Script Date : 2020.05.03 09:05:39
  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, Pwr, Reuse, Speed)
  15. -- Summons a mount
  16. SetMount(Caster, 9747)
  17. SetMountColor(Caster, 0, 0, 0, 10, 10, 10)
  18. --Increase maxmana of caster by 250
  19. AddSpellBonus(Caster, 619, Pwr)
  20. -- Increase Ability Reuse Time of caster by 3
  21. AddSpellBonus(Caster, 662, Reuse)
  22. --Increases your Ground Speed by 130%
  23. AddSpellBonus(Caster, 611, Speed)
  24. end
  25. function remove(Caster, Target)
  26. RemoveSpellBonus(Caster)
  27. RemoveSkillBonus(Caster)
  28. SetMount(Caster, 0)
  29. end