BregolontheBurly.lua 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --[[
  2. Script Name : Spells/Commoner/BregolontheBurly.lua
  3. Script Author : Skywalker646
  4. Script Date : 2020.03.28 01:03:41
  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, Health, Pwr, Chance, Potency, Double, Speed)
  15. -- Summons a mount
  16. SetMount(Caster, 15379)
  17. Say(Caster, "Might not be accurate model")
  18. --Increases Max Heath of caster by 400.0
  19. AddSpellBonus(Caster, 606, Health)
  20. --Increases Max Power of caster by 400.0
  21. AddSpellBonus(Caster, 619, Pwr)
  22. -- Increases Crit Chance of caster by 3.0%
  23. AddSpellBonus(Caster, 654, Chance)
  24. -- Increases Potency of caster by 3.0%
  25. AddSpellBonus(Caster, 659, Potency)
  26. -- Increases Potency of caster by 14.0%
  27. AddSpellBonus(Caster, 642, Double)
  28. --Increases your Ground Speed by 130%
  29. AddSpellBonus(Caster, 611, Speed)
  30. end
  31. function remove(Caster, Target)
  32. RemoveSpellBonus(Caster)
  33. RemoveSkillBonus(Caster)
  34. SetMount(Caster, 0)
  35. RemoveControlEffect(Caster, 12)
  36. end