OrderFlameLavathreadedCarpet.lua 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --[[
  2. Script Name : Spells/Commoner/OrderFlameLavathreadedCarpet.lua
  3. Script Author : Skywalker646
  4. Script Date : 2020.05.06 08:05:05
  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, Power, Health, DMG, Heal, Melee, Speed)
  15. -- Summons a mount
  16. SetMount(Caster, 10172)
  17. -- Increases Out-of-Combat Power Regeneration Per tick of caster by 90
  18. AddSpellBonus(Caster, 603, Power)
  19. -- Increases Out-of-Combat Health Regeneration Per Tick of caster by 90
  20. AddSpellBonus(Caster, 602, Health)
  21. -- Increases spell damage by 15.0
  22. AddSpellBonus(Caster, 700, DMG)
  23. -- Increases heal amount by 15.0
  24. AddSpellBonus(Caster, 701, Heal)
  25. -- Increases melee damage by 15.0
  26. AddSpellBonus(Caster, 313, Melee)
  27. --Increases your Ground Speed by 130%
  28. AddSpellBonus(Caster, 611, Speed)
  29. -- Reduces maximum falling speed of caster.
  30. AddControlEffect(Caster, 13)
  31. end
  32. function remove(Caster, Target)
  33. RemoveSpellBonus(Caster)
  34. RemoveSkillBonus(Caster)
  35. RemoveControlEffect(Caster, 13)
  36. SetMount(Caster, 0)
  37. end