VisionofMadnessSub.lua 647 B

1234567891011121314151617181920212223
  1. --[[
  2. Script Name : Spells/Commoner/VisionofMadnessSub.lua
  3. Script Author : neatz09
  4. Script Date : 2021.01.09 02:01:34
  5. Script Purpose : sub spell for Vision of Madness
  6. :
  7. --]]
  8. function cast(Caster, Target, Reg, Mod)
  9. if HasSpellEffect(Target, 5172) then
  10. SpellHealPct("Heal", Mod, false, true, Caster, 1)
  11. else
  12. SpellHealPct("Heal", Reg, false, true, Caster,1)
  13. end
  14. end
  15. function tick(Caster, Target, Reg, Mod)
  16. if HasSpellEffect(Target, 5172) then
  17. SpellHealPct("Heal", Mod, false, true, Caster, 1)
  18. else
  19. SpellHealPct("Heal", Reg, false, true, Caster, 1)
  20. end
  21. end