Triggering Unit Being Slowed by enemy units question

Status
Not open for further replies.
Level 8
Joined
Oct 6, 2022
Messages
185
Hello guys, is it possible to make the Triggering unit still attack like his normal speed while it has the slow buff coming from it's enemies like being thunderclap, poison or any kind of skill that has slow ? If so, how to do it? Thanks in advance
 
Level 29
Joined
Sep 26, 2009
Messages
2,594
Is removing the attack-slowing effect from the abilities themselves not desirable?
Or removing negative buffs from the triggering unit?

If neither is a viable option then I don't think you have other easy options. As far as I know, you cannot access unit's current attack speed, only the base attack speed you set in object editor.
So what you would have to do is
  • get the unit's base speed
  • calculate speed bonus from all possible items/abilities/buffs/upgrades/agility that the unit can have at a time
  • calculate speed penalty from all possible debuffs/items on the unit
  • Recalculate unit's base speed to negate the speed penalty while maintaining the speed bonus
  • Do all of the above in a frequently-executed loop or create a system of triggers that would detect attack speed change due to items/abilities/buffs/upgrades/agility
Also, I see in your signature that you are on v1.31 - I don't think this version has the trigger action for changing unit's base attack speed, so what you would have to do is stack the item ability used by Gloves of Haste
 
Last edited:
Status
Not open for further replies.
Top