9
3

SummonAnimatedTome.lua 596 B

1234567891011121314151617181920212223
  1. --[[
  2. Script Name : Spells/SummonAnimatedTome.lua
  3. Script Author : Ememjr
  4. Script Date : 2019.04.21 08:04:26
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Info from spell_display_effects (remove from script when done)
  9. -- Increases Crit Chance of caster by 2.3
  10. -- Summons a pet arcane tome
  11. function cast(Caster, Target, CritChance)
  12. AddSpellBonus(Target, 656, CritChance)
  13. SummonCosmeticPet(Caster, 150084)
  14. end
  15. function remove(Caster, Target)
  16. RemoveSpellBonus(Target)
  17. pet = GetCosmeticPet(Caster)
  18. if pet ~= nil then
  19. DismissPet(pet)
  20. end
  21. end