Fixing couple of bugs

This commit is contained in:
marcin.sciesinski
2019-09-29 21:30:35 -07:00
parent f3f10a30c7
commit 73c21e6a4d
4 changed files with 3 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ public class Card2_023 extends AbstractPermanent {
CardType.ARTIFACT), ModifierEffect.TWILIGHT_COST_MODIFIER) {
@Override
public int getTwilightCostModifier(LotroGame game, PhysicalCard physicalCard, PhysicalCard target, boolean ignoreRoamingPenalty) {
if (target != null && physicalCard.getBlueprint().getCardType() == CardType.POSSESSION || physicalCard.getBlueprint().getCardType() == CardType.ARTIFACT) {
if (target != null && (physicalCard.getBlueprint().getCardType() == CardType.POSSESSION || physicalCard.getBlueprint().getCardType() == CardType.ARTIFACT)) {
CardType cardType = target.getBlueprint().getCardType();
if (target.getBlueprint().getTitle().equals("Gandalf") || (cardType == CardType.COMPANION && target.getBlueprint().getSignet() == Signet.GANDALF))
return -1;

View File

@@ -17,7 +17,7 @@ public class EventEffectProcessor implements EffectProcessor {
DefaultActionSource actionSource = new DefaultActionSource();
actionSource.setRequiresRanger(requiresRanger);
EffectUtils.processCostsAndEffects(value, environment, actionSource);
EffectUtils.processRequirementsCostsAndEffects(value, environment, actionSource);
blueprint.setPlayEventAction(actionSource);
}

View File

@@ -21,7 +21,7 @@ public class ResponseEventEffectProcessor implements EffectProcessor {
DefaultActionSource triggerActionSource = new DefaultActionSource();
triggerActionSource.addPlayRequirement(triggerChecker);
EffectUtils.processCostsAndEffects(value, environment, triggerActionSource);
EffectUtils.processRequirementsCostsAndEffects(value, environment, triggerActionSource);
if (before) {
blueprint.appendOptionalInHandBeforeAction(triggerActionSource);