public bool GetIsAlly(Entity target) { return (this.GetIsUnit() && target.GetIsUnit()) || (this.GetIsEnemy() && target.GetIsEnemy()); }