- for (id player in players)
- {
- if (player != self)
- {
- if ([player isClosed])
- {
- NSLog(@"Closed!");
- if ( [player isLoser] == false )
- {
- NSLog(@"Closed is looser!!");
- [player setIsLoser:true];
- [_gameScene playerDefeated:player];
- for (id virus in [player viruses])
- [[virus sprite] runAction:[CCFadeTo actionWithDuration:1 opacity:50]];
- }
- }
- }
- }
- }