The command stat AffectedEntities is always set to 1 when a command without a player index is executed.
- Run in command block:
- Activate the new command block
→ The score of "affectedEntities" is now 1
The following is based on a decompiled version of Minecraft 1.10 using MCP 9.30.
The reason for this is that the method net.minecraft.command.CommandHandler.executeCommand(ICommandSender, String) sets the affected entities stat to 1 if the command contains no player index.