I'll have to check it, may be I made a mistake, but the inverse way would require adding events and mess with unit group, so it may turns things to a bad and laggy situation.
i tried it and to me it appears the trigger fires before the combat damage is done.
check the new map i uploaded, you will see that UNIT_DAMAGED trigger fires for the first time on the same attack you score a critical hit, meaning the trigger executes before the combat damaged.
if the combat damage was done first, the trigger would display the damage done on the next attack.
I tried to make it work exactly like Critical Strike, and found that it's not that simple. The event you use fires after the target unit takes damage, so creating a trigger to detect the damage taken is no longer possible, and there is no generic event for Unit takes damage.
The orb ability doesn't stack, and shows a disabled icon, so basically you can't have 2 abilities using the orb.
Other than that, this is one of the best way to trigger passive abilities.
anyway, this is not an official wikidme 'spell' submission, it is a submission merely to show people the only way you can detect orb of lightning, and how to 'GET' the attacked unit if you want to make a custom combat ability.
and arcanister's conditions will ensure it wont mess up with any other spell.
Wikidme... I wasn't saying it as a bad thing... i was just trying to point out the problems. Don't be so harsh when people are trying to point out the problems. I understand that I could change it but... I don't want to. It's your spell. You should make your spells as good as possible and with as few bugs as possible. And as for another method, I'm sure there is an don't worry. I will find it if you really meant it.
And for the first stuff... I don't think you cleared it. Explain more accurately please.
Dealin, all those points you make are easy to work around by using extra conditions
1) level of ability for wand of illusion users = blah blah.
2) i know its not critical strike, but im not trying to mimic it exactly, the point here is DETECTION OF ORB OF LIGHTNING. can you think of another method? no thats right, THERE ISNT ANY. if i wanted to make it EXACTLY like critical ill add extra actions which create unit is damaged event right after this trigger fires.
3) to solve the mirror image crisis, add an extra condition to check the unit-type of the illusions.
1) What will you do if someone actually uses the Wand of Illusions ability? 2) It isn't exactly Critical Strike because it doesn't do double/triple/quadruple damage 3) It messes up with Mirror Image. So, Mirror Image no longer works. And that is not a good ideas.
Many bugs still to solve. The way you did it is not very good because it messes up with Mirror Image and Illusions. Solve it and then it will be better. Until then, 3/5. Creative though...
Pretty sweet, if you want to have the crit animation play just order him to play Attack2. Also tint the red text a deeper red, this one is too light. Good job.