Code lift and review of old cards.

This commit is contained in:
marcins78
2013-02-14 16:51:42 +00:00
parent f14dd3d9a4
commit e045db6d6d
18 changed files with 18 additions and 19 deletions

View File

@@ -54,7 +54,7 @@ public class Card1_015 extends AbstractAttachableFPPossession {
new SelfDiscardEffect(self));
action.appendEffect(
new AddUntilEndOfPhaseActionProxyEffect(
new PreventAllWoundsActionProxy(self, self.getAttachedTo()), Phase.SKIRMISH));
new PreventAllWoundsActionProxy(self, self.getAttachedTo())));
return Collections.singletonList(action);
}
return null;

View File

@@ -77,8 +77,7 @@ public class Card1_029 extends AbstractOldEvent {
}
return null;
}
}, Phase.SKIRMISH
));
}));
}
}
);

View File

@@ -66,7 +66,7 @@ public class Card17_103 extends AbstractEvent {
}
return null;
}
}, Phase.SKIRMISH));
}));
}
});
return action;

View File

@@ -63,7 +63,7 @@ public class Card20_029 extends AbstractEvent {
}
return null;
}
}, Phase.SKIRMISH));
}));
}
});
return action;

View File

@@ -51,7 +51,7 @@ public class Card20_082 extends AbstractEvent {
}
return null;
}
}, Phase.SKIRMISH));
}));
}
});
return action;

View File

@@ -60,7 +60,7 @@ public class Card20_168 extends AbstractEvent {
}
return null;
}
}, Phase.SKIRMISH));
}));
}
});
return action;

View File

@@ -57,7 +57,7 @@ public class Card4_047 extends AbstractPermanent {
});
action.appendEffect(
new AddUntilEndOfPhaseActionProxyEffect(
new PreventAllWoundsActionProxy(self, character), Phase.SKIRMISH));
new PreventAllWoundsActionProxy(self, character)));
}
});
return Collections.singletonList(action);

View File

@@ -40,7 +40,7 @@ public class Card4_096 extends AbstractOldEvent {
protected void cardSelected(LotroGame game, PhysicalCard card) {
action.appendEffect(
new AddUntilEndOfPhaseActionProxyEffect(
new PreventAllWoundsActionProxy(self, card), Phase.SKIRMISH));
new PreventAllWoundsActionProxy(self, card)));
}
});
return action;

View File

@@ -43,7 +43,7 @@ public class Card4_097 extends AbstractOldEvent {
action.appendEffect(
new PreventableEffect(action,
new AddUntilEndOfPhaseActionProxyEffect(
new PreventAllWoundsActionProxy(self, Filters.gandalf), Phase.SKIRMISH) {
new PreventAllWoundsActionProxy(self, Filters.gandalf)) {
@Override
public String getText(LotroGame game) {
return "Prevent all wounds to Gandalf";

View File

@@ -69,7 +69,7 @@ public class Card4_128 extends AbstractOldEvent {
}
return null;
}
}, Phase.SKIRMISH));
}));
}
});
return action;

View File

@@ -66,7 +66,7 @@ public class Card4_307 extends AbstractEvent {
}
return null;
}
}, Phase.SKIRMISH));
}));
}
});
return action;

View File

@@ -73,7 +73,7 @@ public class Card6_044 extends AbstractEvent {
}
return null;
}
}, Phase.REGROUP));
}));
return action;
}
}

View File

@@ -64,7 +64,7 @@ public class Card7_076 extends AbstractEvent {
}
return null;
}
}, Phase.REGROUP));
}));
return action;
}
}

View File

@@ -57,7 +57,7 @@ public class Card7_083 extends AbstractEvent {
}
return null;
}
}, Phase.SKIRMISH));
}));
}
}
});

View File

@@ -68,7 +68,7 @@ public class Card7_091 extends AbstractCompanion {
new ChooseAndExertCharactersEffect(action, playerId, 1, 1, Filters.gandalf));
action.appendEffect(
new AddUntilEndOfPhaseActionProxyEffect(
new PreventAllWoundsActionProxy(self, self), Phase.SKIRMISH));
new PreventAllWoundsActionProxy(self, self)));
actions.add(action);
}

View File

@@ -72,7 +72,7 @@ public class Card8_068 extends AbstractEvent {
}
return null;
}
}, Phase.SKIRMISH));
}));
}
}
});

View File

@@ -56,7 +56,7 @@ public class Card8_073 extends AbstractEvent {
}
return null;
}
}, Phase.SKIRMISH));
}));
}
});
return action;

View File

@@ -60,7 +60,7 @@ public class Card8_082 extends AbstractEvent {
}
return null;
}
}, Phase.SKIRMISH));
}));
}
});
return action;