Some1Sneakin
New Member
- Reaction score
- 5
Ive made an ability which is called Guardian's Will.
(copied for WE)
(passive)
"Guardians will:"
"Deals bonus damage equal to how much health you are missing."
"Level 1: You deal 4% of your missing health in damage."
"Level 2: You deal 5% of your missing health in damage."
etc...
My trigger looks like:
Thats the trigger, (know its not the best). Still its working good, except for a bug i found. The event "Unit - A unit Is attacked" is triggered when your unit begins to attack. Which means if you order your hero to attack, the enemy will take the damage, but if you then press STOP before your hero has hit the enemy, the ability damage will be made but not the normal damage. So if you rapidly click attack and stop, the ability damage will damage the enemy damn quick. Ok so now i found this bug but im like i've no idea how to fix it. Maybe you know?
-Some1Sneakin
(copied for WE)
(passive)
"Guardians will:"
"Deals bonus damage equal to how much health you are missing."
"Level 1: You deal 4% of your missing health in damage."
"Level 2: You deal 5% of your missing health in damage."
etc...
My trigger looks like:
Code:
Guardians Will
Events
Unit - A unit Is attacked
Conditions
(Unit-type of (Attacking unit)) Equal to Honor Guard
(Level of Guardian's Will for (Attacking unit)) Greater than 0
Actions
Wait 0.10 seconds
Unit - Cause (Attacking unit) to damage (Attacked unit), dealing ((0.03 + (0.01 x (Real((Level of Guardian's Will for (Attacking unit)))))) x ((Max life of (Attacking unit)) - (Life of (Attacking unit)))) damage of attack type Spells and damage type Normal
-Some1Sneakin