- Joined
- May 13, 2005
- Messages
- 164
How do I make the ability whereby when a unit (attacking unit) attacks another specific unit (attacked unit) with a certain buff, the attacking unit regains health?
I dont wanna make use of the "Unit is Attacked" event as it only detects when the attack is initiated and before it is hit and therefore may cause abuses as in, the player controlling the attacking unit can just repeatedly press stop while the unit attacks to regain health by initiating more attacks without hitting the target.
Example: DotA's Naix's Open Wound ability. Units that attack the target with the Open Wound buff can regain a percentage of their life depending on their attack damage.
I dont wanna make use of the "Unit is Attacked" event as it only detects when the attack is initiated and before it is hit and therefore may cause abuses as in, the player controlling the attacking unit can just repeatedly press stop while the unit attacks to regain health by initiating more attacks without hitting the target.
Example: DotA's Naix's Open Wound ability. Units that attack the target with the Open Wound buff can regain a percentage of their life depending on their attack damage.