| 05-07-2006, 08:16 PM | #1 |
Is there a way to multiply a heros damage using a trigger? I wish to multiply the heros damage by 2, 3, 4, 5, 6, 8 depending on the level of a backstab ability. I have already designed that the trigger will only work if you are attacking from behind. |
| 05-07-2006, 08:50 PM | #2 |
You could use the EVENT_UNIT_DAMAGED event on every unit on the map. When it fires, check if the attacker has the ability. Then disable the trigger and deal GetEventDamage()*n to the attacked unit and finally reenable the trigger. |
| 05-07-2006, 09:26 PM | #3 |
I heard that critical strike could have its level changed on the 'unit is attacked' event, and it would effect the attack. Investigate that, as it would be a very elegent solution. |
