Zechnophobe
Strategy Lich
The only time you can pass the unit who attacked is in a combat death. If you are trying to work with ANY death, you are only able to know which player did the dead, if any.
So the argument trapped by 'iAttacker' is a reference to a player? I had just assumed it was a reference to a unit. Either way, it would still seem to be a good idea to pass that along, since I can see a lot of areas in the scenario code that are weakened.
For instance, the 'Radiant Guard' problems with not letting falamar win, are due in large part to a very clunky means of determining success. Instead of asking 'who killed hyborem' or 'who killed basium' you instead try to figure out which teams are at war with basium/hyborem, and use that to determine a victor.
If they had the Attacker information (Even if it is just the player) there would have been a significantly easier time of it.
Also, even if the unit was not killed via combat, passing a null value is completely workable, so long as you make sure to check for it.