9
3

PlagueCloud.lua 986 B

12345678910111213141516171819202122232425262728293031323334
  1. --[[
  2. Script Name : Plaguecloud Ground Mount
  3. Script Purpose :
  4. Script Author : Neatz09
  5. Script Date : 11/17/2019
  6. Script Notes :
  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, SkillAmt, Ground)
  15. --Increases Oridination, Subjugation, Ministration, Disruption and Focus by 5.0
  16. AddSkillBonus(Caster, GetSkillIDByName("Focus"), SkillAmt)
  17. AddSkillBonus(Caster, GetSkillIDByName("Disruption"), SkillAmt)
  18. AddSkillBonus(Caster, GetSkillIDByName("Ministration"), SkillAmt)
  19. AddSkillBonus(Caster, GetSkillIDByName("Subjugation"), SkillAmt)
  20. AddSkillBonus(Caster, GetSkillIDByName("Ordination"), SkillAmt)
  21. --Summons a mount to ride
  22. SetMount(Caster, 14760)
  23. --Increases your ground speed by 130%
  24. AddSpellBonus(Caster, 611, Ground)
  25. end
  26. function remove(Caster, Target)
  27. RemoveSpellBonus(Caster)
  28. RemoveSkillBonus(Caster)
  29. SetMount(Caster, 0)
  30. end