9
3

Redoubt.lua 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. --[[
  2. Script Name : Spells/Priest/Cleric/Redoubt.lua
  3. Script Author : neatz09
  4. Script Date : 2020.01.02 04:01:29
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Increases Max Health of target by 91.3
  9. -- Increases Slashing and Crushing of target by 2.2
  10. -- Increases Piercing of target by 4.3
  11. function cast(Caster, Target, HP, OffSkill, Pierce)
  12. Level = GetLevel(Caster)
  13. SpellLevel = 16
  14. Mastery = SpellLevel + 10
  15. StatBonus = GetWis(Caster) / 10
  16. if Level < Mastery then
  17. LvlBonus = Level - SpellLevel
  18. else LvlBonus = Mastery - SpellLevel
  19. end
  20. TotalBonus = LvlBonus *2 + StatBonus
  21. HpBonus = HP + math.floor(TotalBonus)
  22. AddSpellBonus(Target, 500, HpBonus)
  23. AddSkillBonus(Target, GetSkillIDByName("Slashing"), OffSkill)
  24. AddSkillBonus(Target, GetSkillIDByName("Crushing"), OffSkill)
  25. AddSkillBonus(Target, GetSkillIDByName("Piercing"), Pierce)
  26. end
  27. function remove(Caster, Target)
  28. RemoveSpellBonus(Target)
  29. RemoveSkillBonus(Target)
  30. end