LayonHands.lua 801 B

123456789101112131415161718192021222324
  1. --[[
  2. Script Name : Spells/Fighter/Crusader/Paladin/LayonHands.lua
  3. Script Author : Jabantiz
  4. Script Date : 2013.12.07 06:12:55
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, statBonus, mitBonus, HealMin, HealMax)
  9. -- Increases Max Health of target by 96.7
  10. AddSpellBonus(Target, 500, statBonus)
  11. -- Increases Mitigation of target vs physical damage by 180
  12. AddSpellBonus(Target, 204, mitBonus)
  13. AddSpellBonus(Target, 205, mitBonus)
  14. AddSpellBonus(Target, 206, mitBonus)
  15. -- Heals target for 42.1 - 51.5% of max health
  16. -- This effect cannot be critically applied.
  17. SpellHeal(Heal, GetPCTOfHP(Target, HealMin), GetPCTOfHP(Target, HealMax), nil, 2, 1)
  18. end
  19. function remove(Caster, Target)
  20. RemoveSpellBonus(Target)
  21. end