PrayerofHealingpct.lua 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. --[[
  2. Script Name : Spells/Fighter/Crusader/Paladin/PrayerofHealingpct.lua
  3. Script Author : neatz09
  4. Script Date : 2019.11.09 06:11:06
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Info from spell_display_effects (remove from script when done)
  9. -- Heals group members (AE) for 6.9 - 8.5% of max health
  10. -- This effect cannot be critically applied.
  11. -- Increases Max Health of group members (AE) by 155.7
  12. -- The healing of this spell cannot be modified except by direct means
  13. --[[
  14. Script Name : Spells/Fighter/Crusader/Paladin/PrayerofHealing.lua
  15. Script Author : Jabantiz
  16. Script Date : 2013.12.05 05:12:39
  17. Script Purpose :
  18. :
  19. --]]
  20. function cast(Caster, Target, BonusAmt, MinVal, MaxVal)
  21. -- Increases Max Health of group members (AE) by 15.8
  22. AddSpellBonus(Target, 606, BonusAmt)
  23. -- Heals group members (AE) for 21 - 25
  24. -- This effect cannot be critically applied.
  25. -- The healing of this spell cannot be modified except by direct means
  26. if MaxVal ~= nil and MinVal < MaxVal then
  27. SpellHeal("Heal", MinVal, MaxVal)
  28. else
  29. SpellHeal("Heal", MinVal)
  30. end
  31. end
  32. function remove(Caster, Target)
  33. RemoveSpellBonus(Target)
  34. end