9
3

TaffosBrilliantBlade.lua 665 B

1234567891011121314151617181920212223
  1. --[[
  2. Script Name : Spells/Scout/Bard/TaffosBrilliantBlade.lua
  3. Script Author : neatz09
  4. Script Date : 2020.11.06 06:11:29
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Inflicts 52 - 87 melee damage on target
  9. -- Decreases power of target by 20 - 33
  10. -- Must be flanking or behind
  11. function precast(Caster,Target)
  12. if not IsFlanking(Target, Caster) then
  13. SendMessage(Caster, "Must be flanking or behind", "yellow")
  14. return false
  15. end
  16. return true
  17. end
  18. function cast(Caster, Target, DmgType, MinVal, MaxVal, MinHeal, MaxHeal)
  19. SpellDamage(Target, DmgType, MinVal, MaxVal)
  20. SpellHeal("Heal", MaxHeal, MinHeal, Target)
  21. end