Hey there everyone,
I'm currently working on a hero with the following abilities:
I have all of the abilities working pretty well using GDD damage detection, however, I have a problem with Vital Stab, I'd like to check to see if the melee attack that sparked the trigger for vital stab was the melee attack that removed the hero's stealth buff, but it appears as though the buff is removed before the damage is detected, so I can't change the multiplier from 6 to 7.
The invisibility buff is given to the hero via a dummy unit that spawns, is given a custom single target invisibility ability, and casts it on the hero.
Vital stab is a channel dummy ability that causes another dummy unit to spawn and give the player a similar buff that doesn't do anything. it's mostly just a flag.
Any suggestions as to how I might be able to detect if the player is invisible when the ability is triggered?
Thanks!
I'm currently working on a hero with the following abilities:
Smoke Bomb - Teleports the Ninja a short distance and makes him invisible for 5/6/7 seconds, allowing him to move in and out of combat.
Keen Eye - Gives the Ninja's Melee Attacks a 15/20/25% chance to deal 2 times normal melee damage.
Vital Stab - Gives the Ninja's next melee attack a 6 times damage boost. If the ninja is breaking from Smoke Bomb's invisibility, the multiplier is increased to 7 times normal damage.
Stacks with Keen Eye.
I have all of the abilities working pretty well using GDD damage detection, however, I have a problem with Vital Stab, I'd like to check to see if the melee attack that sparked the trigger for vital stab was the melee attack that removed the hero's stealth buff, but it appears as though the buff is removed before the damage is detected, so I can't change the multiplier from 6 to 7.
The invisibility buff is given to the hero via a dummy unit that spawns, is given a custom single target invisibility ability, and casts it on the hero.
Vital stab is a channel dummy ability that causes another dummy unit to spawn and give the player a similar buff that doesn't do anything. it's mostly just a flag.
Any suggestions as to how I might be able to detect if the player is invisible when the ability is triggered?
Thanks!