9
3

Pathfinding.lua 426 B

1234567891011121314151617181920
  1. --[[
  2. Script Name : Spells/Scout/Pathfinding.lua
  3. Script Author : John Adams
  4. Script Date : 2010.01.29
  5. Script Note :
  6. :
  7. --]]
  8. function cast(Caster, Target, BuffValue)
  9. NewSpeed = GetSpeed(Caster)
  10. if NewSpeed == 0 then
  11. SetSpeed(Caster, BuffValue)
  12. else
  13. SetSpeed(Caster, NewSpeed + BuffValue)
  14. end
  15. end
  16. function remove(Caster, Target, BuffValue)
  17. SetSpeed(Caster, 0)
  18. end