Evil, flat out. The troll didn't attack you, it attacked your enemies. The detect alignment was icing on the cake.
Dandu's breakdown is spot-on. Your mage's attack in the heat of battle could conceivably be neutral - maybe he was just worried that the troll was going to attack, and went on a...