9
3

SummonTheTribunalsBailiff.lua 961 B

1234567891011121314151617181920212223242526272829303132
  1. --[[
  2. Script Name : Spells/Commoner/SummonTheTribunalsBailiff.lua
  3. Script Author : neatz09
  4. Script Date : 2020.11.26 03:11:39
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Increases AGI of caster by 2.5
  9. -- Increases INT of caster by 2.5
  10. -- Increases STA of caster by 2.5
  11. -- Increases STR of caster by 2.5
  12. -- Increases WIS of caster by 2.5
  13. -- Summons a pet bailiff
  14. -- If follows The Tribunal
  15. function cast(Caster, Target, PetID, Stats)
  16. Adjusted = GetLevel(Caster) / Stats
  17. SummonDeityPet(Caster, PetID, Stats)
  18. Say(Caster, "deity checks needed and formula need to be fine tuned")
  19. AddSpellBonus(Target, 0, Adjusted)
  20. AddSpellBonus(Target, 1, Adjusted)
  21. AddSpellBonus(Target, 2, Adjusted)
  22. AddSpellBonus(Target, 3, Adjusted)
  23. AddSpellBonus(Target, 4, Adjusted)
  24. end
  25. function remove(Caster, Target)
  26. pet = GetDeityPet(Caster)
  27. if pet ~= nil then
  28. DismissPet(pet)
  29. end
  30. RemoveSpellBonus(Target)
  31. end