Upgraders know if they affect enemies or allies.

Added flag affectsEnemies that indicates who has to be upgraded.
added test checking double upgrading