Change "type" to "faction" in BattleObject attributes