One-shot killed enemies do not alert allies

I noticed that whenever I one shot killed enemies they would not alert their allies due to AttackBehaviour() not being called before they died. This would look rather silly if I have a group of 4 tightly packed enemies and one of them just dropped dead in-front of the others without any reaction.

I added the AggravateNearbyAllies() method as a subscriber to the OnDeath Unity event to sort this out.

Not sure if anyone else ran into the same issue but thought I’d mention it.

That’s a clever solution. Well done.

I could see situations where a oneshot kill would not alert nearby enemies… but we’re not making WoW Rogues quite yet in our course.