SummonBelovedofBristlebane.lua 962 B

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : Spells/Commoner/SummonBelovedofBristlebane.lua
  3. Script Author : neatz09
  4. Script Date : 2020.11.26 03:11:52
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Increases WIS of caster by 2.5
  9. -- Increases AGI of caster by 2.5
  10. -- Increases INT of caster by 2.5
  11. -- Increases STA of caster by 2.5
  12. -- Increases STR of caster by 2.5
  13. -- Summons a pet bovoch
  14. -- If follows Bristlebane
  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