9
3

SummonElementalofKarana.lua 965 B

12345678910111213141516171819202122232425262728293031323334
  1. --[[
  2. Script Name : Spells/Commoner/SummonElementalofKarana.lua
  3. Script Author : neatz09
  4. Script Date : 2020.11.26 02:11:43
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Increases STR of caster by 2.5
  9. -- Increases WIS of caster by 2.5
  10. -- Increases AGI of caster by 2.5
  11. -- Increases INT of caster by 2.5
  12. -- Increases STA of caster by 2.5
  13. -- Summons a pet storm elemental
  14. -- If follows Karana
  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