adding onMinionDied in the minion template