Strygwyr's Thirst (A0I8)
Based on Evasion (0%).
When the skill is first learnt, save "Hero" to the cache and start a periodic timer every 0.5 seconds.
When it times out, it recovers "Hero" from the cache, make GlobalVariableBoolean (01II) as false then count every enemy hero unit in the map and for each unit it does the following: if "Hero" doesn't have Thirst learnt or is dead, then make the unit unshare vision. If that's false and the distance between EnumUnit and "Hero" (from now on just Distance) is bigger or equal than 1500*Thirstlvl or Distance is lower than 1500*ThirstLvl and the EnumUnit life percent is bigger than 40 then make the unit unshare the vision. If the Distance is lower than 1500*Thirstlvl and the EnumUnit's life percent is lower or equal than 40, make the unit share vision with Strygwyr's Owner and set GlobalVariableBoolean to true. After doing everyone on the group, if the Boolean is true then: create a dummy unit (e00E) on Strygwyr's position, add a Bloodlust ability (A0LG) with level equal to Thirst's level to it and tell it to use it on Strygwyr. If the Boolean was false, then make Strygwyr lose the Thirst buff (B05R).
The bloodlust lasts for 30 seconds, and gives 0.11/0.22/0.33/0.44 movement speed.
Share This Thread