Fixed bug with cards checking if a card was played in phase/turn
This commit is contained in:
@@ -18,9 +18,11 @@ public class CardPlayedInCurrentPhaseCondition implements Condition {
|
||||
@Override
|
||||
public boolean isFullfilled(LotroGame game) {
|
||||
for (EffectResult effectResult : game.getActionsEnvironment().getPhaseEffectResults()) {
|
||||
PlayCardResult playResult = (PlayCardResult) effectResult;
|
||||
if (filter.accepts(game, playResult.getPlayedCard()))
|
||||
return true;
|
||||
if (effectResult instanceof PlayCardResult) {
|
||||
PlayCardResult playResult = (PlayCardResult) effectResult;
|
||||
if (filter.accepts(game, playResult.getPlayedCard()))
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
@@ -18,9 +18,11 @@ public class CardPlayedInCurrentTurnCondition implements Condition {
|
||||
@Override
|
||||
public boolean isFullfilled(LotroGame game) {
|
||||
for (EffectResult effectResult : game.getActionsEnvironment().getTurnEffectResults()) {
|
||||
PlayCardResult playResult = (PlayCardResult) effectResult;
|
||||
if (filter.accepts(game, playResult.getPlayedCard()))
|
||||
return true;
|
||||
if (effectResult instanceof PlayCardResult) {
|
||||
PlayCardResult playResult = (PlayCardResult) effectResult;
|
||||
if (filter.accepts(game, playResult.getPlayedCard()))
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user