DefensiveHaven.lua 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : Spells/Mage/Summoner/Conjuror/DefensiveHaven.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.03.12 05:03:47
  5. Script revision : Updated 4/13/2020 neatz09
  6. :
  7. --]]
  8. function cast(Caster, Target, AtkSpeed, MaxHP, HateGain, Agg, Resist, HateMin, HateMax, Ward)
  9. -- Decreases Attack Speed of target by 25.0
  10. AddSpellBonus(Target, 617, AtkSpeed)
  11. -- Increases Max Health of target by 9.0%
  12. AddSpellBonus(Target, 607, MaxHP)
  13. -- Increases Hate Gain of target by 11.9%
  14. AddSpellBonus(Target, 624, HateGain)
  15. -- Increases Aggression of target by 1.9
  16. AddSkillBonus(Target, GetSkillIDByName("Aggression"), Agg)
  17. -- Increases Mitigation of target vs arcane damage by 126
  18. AddSpellBonus(Target, 203, Resist)
  19. -- Increases Mitigation of target vs elemental damage by 126
  20. AddSpellBonus(Target, 201, Resist)
  21. -- Increases Mitigation of target vs noxious damage by 126
  22. AddSpellBonus(Target, 202, Resist)
  23. -- On any combat or spell hit this spell will cast Shout on target of attack.
  24. -- Increases Threat to target encounter by 35 - 42
  25. AddProc(Target, 1, 100)
  26. -- Wards target against 13 points of all damage
  27. AddWard(Ward, 1)
  28. end
  29. function proc(Caster, Target, Type, AtkSpeed, MaxHP, HateGain, Agg, Resist, HateMin, HateMax, Ward)
  30. if Type == 1 then
  31. ProcHate(Caster, Target, math.random(HateMin, HateMax), "Shout")
  32. end
  33. end
  34. function remove(Caster, Target)
  35. RemoveSpellBonus(Target)
  36. RemoveSkillBonus(Target)
  37. RemoveProc(Target)
  38. end