| 11-17-2003, 11:31 PM | #1 |
I just found out after multiple tests that if you find the life of attacked unit, for the event a unit is attacked, you get the life before damage was delt. |
| 11-17-2003, 11:48 PM | #2 |
<nod> You can do weird things with that - ordering the attacking unit to stop will prevent them from attacking at all, meaning they stand there and do a little dance. Attacking is triggered as soon as they start their attack animation, not when the attack actually lands, so they'll constantly be resetting their attack animation, then beginning it again. Useless, but funny. |
| 11-18-2003, 12:12 AM | #3 |
I wish I had known this information about 5 hours ago |
| 11-18-2003, 12:34 AM | #4 |
Your trigger may still work - put in a wait. That way, by the time it checks the life of the attacked unit, the attack will have already happened. |
| 11-18-2003, 12:49 AM | #5 |
You can get around this by creating a event - attacked unit is damaged via the unit is attacked trigger. Then you can use Event Response - Damage Taken. Should be a thread about this if you do a search. |
| 11-18-2003, 12:44 PM | #6 |
Yes, the A unit is attacked event is more of a "A unit is being attacked" one And the A unit spawns a summoned unit is more of a "A unit is summoned by another unit" event |
| 11-18-2003, 09:44 PM | #7 | |
Quote:
Remember no latent triggers. :) So if you do it this way you will have to remove the event again when the unit leaves the aura. :D |
