9
3

ConstrictingTentacle.lua 766 B

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : Spells/Traditions/ConstrictingTentacle.lua
  3. Script Author : neatz09
  4. Script Date : 2020.08.18 01:08:23
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Info from spell_display_effects (remove from script when done)
  9. -- Roots target
  10. -- Decreases Attack Speed of target by 6.7 - 11.3
  11. function cast(Caster, Target, MinVal, MaxVal)
  12. AddControlEffect(Target, 5)
  13. local Val1 = MinVal
  14. local Val2 = MaxVal
  15. local Haste = randomFloat(Val1, Val2)
  16. AddSpellBonus(Target, 617, Haste)
  17. end
  18. function randomFloat(Val1, Val2)
  19. math.randomseed(os.time())
  20. return Val1 + math.random() * (Val2 - Val1);
  21. end
  22. function remove(Caster, Target)
  23. RemoveControlEffect(Target, 5)
  24. RemoveSpellBonus(Target)
  25. end