Fixing couple of bugs
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user