9
3

JugularSlice.lua 1002 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. --[[
  2. Script Name : Spells/Scout/Predator/Assassin/JugularSlice.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.04.17 05:04:09
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  9. Level = GetLevel(Caster)
  10. SpellLevel = 20
  11. Mastery = SpellLevel + 10
  12. StatBonus = GetStr(Caster) / 10
  13. if Level < Mastery then
  14. LvlBonus = Level - SpellLevel
  15. else LvlBonus = Mastery - SpellLevel
  16. end
  17. DmgBonus = LvlBonus + StatBonus
  18. MaxDmg = math.floor(DmgBonus * 2.5) + MaxVal
  19. MinDmg = math.floor(DmgBonus * 2.5) + MaxVal
  20. SpellDamage(Target, DmgType, MinDmg, MaxDmg)
  21. -- Stifles target
  22. -- If Target is not Epic
  23. if not IsEpic(Target) then
  24. AddControlEffect(Target, 2)
  25. end
  26. -- Resistibility increases against targets higher than level 29.
  27. end
  28. function remove(Caster, Target)
  29. RemoveControlEffect(Target, 2)
  30. end