9
3

BastionofTruthsDisc.lua 971 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --[[
  2. Script Name : Spells/Commoner/BastionofTruthsDisc.lua
  3. Script Author : neatz09
  4. Script Date : 2019.11.19 07:11:16
  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, HP, MP, Speed, Crit, Cast)
  15. -- Summons a mount to ride
  16. SetMount(Caster, 10985)
  17. AddControlEffect(Caster, 12)
  18. -- Increases Max Health of caster by 200.
  19. AddSpellBonus(Caster, 606, HP)
  20. -- Increases Max Power by 200.0
  21. AddSpellBonus(Caster, 619, MP)
  22. -- increases your ground speed by 130%
  23. AddSpellBonus(Caster, 611, Speed)
  24. -- Increases Crit Chance by 2.0%
  25. AddSpellBonus(Caster, 654, Crit)
  26. -- Increases Ability Casting Speed by 2.0%
  27. AddSpellBonus(Caster, 664, Cast)
  28. end
  29. function remove(Caster, Target)
  30. SetMount(Caster, 0)
  31. RemoveControlEffect(Caster, 13)
  32. RemoveSpellBonus(Caster)
  33. end