ObsidianWebbing.lua 856 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. --[[
  2. Script Name : Spells/Mage/ObsidianWebbing.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.11.20 12:11:18
  5. Script Purpose :
  6. :
  7. --]]
  8. function precast(Caster, Target)
  9. -- Does not affect Epic targets
  10. if IsEpic(Target) then
  11. return false, 43
  12. end
  13. return true
  14. end
  15. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  16. local IntBonus = GetInt(Caster) / 10
  17. local MinDmg = math.floor(MinVal + IntBonus)
  18. local MaxDmg = math.floor(MaxVal + IntBonus)
  19. SpellDamage(Target, DmgType, MinDmg, MaxDmg)
  20. AddControlEffect(Target, 5)
  21. AddProc(Target, 2, 10.0)
  22. end
  23. function proc(Caster, Target, Type)
  24. if Type == 2 then
  25. CancelSpell()
  26. end
  27. end
  28. function remove(Caster, Target)
  29. RemoveControlEffect(Target, 5)
  30. end