[Fixed] same template ai fighting one another if they have no social
group or a social group of self - mantis 5390

Change-Id: I3d5d2e32a4540421992c56fc90f5c47ea2e75070