Checking event requirements
This commit is contained in:
@@ -376,6 +376,9 @@ public class BuiltLotroCardBlueprint implements LotroCardBlueprint {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (playEventAction != null)
|
||||
playEventAction.isValid(null, game, self, null, null);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user