SummonGargoyle.lua 623 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Script Name : Spells/SummonGargoyle.lua
  3. Script Author : Ememjr
  4. Script Date : 2019.04.21 07:04:05
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Info from spell_display_effects (remove from script when done)
  9. -- Decreases Hate Gain of caster by 4.0%
  10. -- Summons a pet lesser gargoyle
  11. function cast(Caster, Target, HateGain)
  12. AddSpellBonus(Target, 624, HateGain)
  13. SummonCosmeticPet(Caster, 340083)
  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