Checking event requirements

This commit is contained in:
marcin.sciesinski
2019-08-27 08:53:16 -07:00
parent b0a39e7241
commit 2459de601e
2 changed files with 4 additions and 3 deletions

View File

@@ -376,6 +376,9 @@ public class BuiltLotroCardBlueprint implements LotroCardBlueprint {
return false;
}
if (playEventAction != null)
playEventAction.isValid(null, game, self, null, null);
return true;
}

View File

@@ -55,8 +55,6 @@ public class PlayEventRule {
private boolean checkIfCorrectPhase(LotroGame game, LotroCardBlueprint blueprint) {
final Phase currentPhase = game.getGameState().getCurrentPhase();
final Keyword keyword = phaseKeywordMap.get(currentPhase);
if (keyword != null && blueprint.hasKeyword(keyword))
return true;
return false;
return keyword != null && blueprint.hasKeyword(keyword);
}
}