* Fixed a bug that winning with alternate win condition (e.g. Biovisionary) did not set game end date. That leads to a NPE in client.

This commit is contained in:
LevelX2 2014-08-14 14:08:41 +02:00
parent 484a4fe0f6
commit f0e8041906
3 changed files with 80 additions and 2 deletions

View file

@ -66,7 +66,11 @@ public class Biovisionary extends CardImpl {
this.toughness = new MageInt(3);
//At the beginning of the end step, if you control four or more creatures named Biovisionary, you win the game.
this.addAbility(new BeginningOfEndStepTriggeredAbility(Zone.BATTLEFIELD, new WinGameSourceControllerEffect(), TargetController.ANY, new ControlsPermanentCondition(filter, ControlsPermanentCondition.CountType.MORE_THAN, 3), false));
this.addAbility(new BeginningOfEndStepTriggeredAbility(
Zone.BATTLEFIELD, new WinGameSourceControllerEffect(),
TargetController.ANY,
new ControlsPermanentCondition(filter, ControlsPermanentCondition.CountType.MORE_THAN, 3),
false));
}
public Biovisionary(final Biovisionary card) {