I would use a damage response on the defender using a buff that applies a Modify Unit effect that changes ownership to hostile and heals (like transfusion).
Contribute to the wiki (Wiki button at top of page)
Considered easy altering of the unit textures?
http://static.sc2mapster.com/content/attachments/15/252/Screenshot2011-04-17_09_16_21.jpg
For my public assets look here!
http://www.sc2mapster.com/forums/resources/data-assets/46733-the-assets-of-evil/#1
Zero0018 AuthorI have a trigger setup so when a neutral unit is attacked change owner to hostile.
When this change happens, for some reason the changed unit loses all energy and heals up to full, negating the initial attack damage.
I ran the trigger debugger thinking maybe a trigger was firing causing this, but that's not the case.
I created a new blank map to test this and it worked fine there, so it's something on my map.
I also tried making it so after the unit changes owner, deal the attackers weapon damage on the unit, but this causes it to deal double damage. So your unit attacks, the enemy unit heals, then it deals the damage from the effect, then your unit hits again. This really shouldn't be double damage and technically should work, but it doesn't. I know this because the lv 1 unit has 5 life and you deal 1 damage and on the first attack it kills the enemy unit... The trigger isn't firing more than 1 time.
I don't know if this is a trigger issue or data. I have tried everything I can think of and am bashing my head into a wall at this point.