AlinsSereneSerenade.lua 818 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : Spells/Scout/Bard/Troubador/AlinsSereneSerenade.lua
  3. Script Author : neatz09
  4. Script Date : 2020.02.11 07:02:21
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Decreases Hate Gain of group members (AE) by 10.7%
  9. -- If not fighter
  10. -- When damaged this spell will cast Serenade on target's attacker.
  11. -- Decreases Threat to target by 22
  12. -- If not fighter
  13. function cast(Caster, Target, HateGain, Decrease)
  14. Say(Caster, "Proc needs to be exempt from fighter")
  15. AddSpellBonus(Target, 624, HateGain, 11, 21 , 31)
  16. AddProc(Target, 15, 100, nil, 1)
  17. end
  18. function proc(Caster, Target, HateGain, Decrease)
  19. if Type == 15 then
  20. ProcHate(Caster, Target, Hate, "Serenade")
  21. end
  22. end
  23. function remove(Caster, Target)
  24. RemoveProc(Target)
  25. end