- "Damrod" now correctly checks his spot play condition.

This commit is contained in:
marcins78@gmail.com
2012-01-07 14:26:26 +00:00
parent 3391171267
commit f4b6a28829
3 changed files with 12 additions and 0 deletions

View File

@@ -36,6 +36,12 @@ public class Card4_114 extends AbstractCompanion {
addKeyword(Keyword.RANGER);
}
@Override
public boolean checkPlayRequirements(String playerId, LotroGame game, PhysicalCard self, int withTwilightRemoved, int twilightModifier, boolean ignoreRoamingPenalty, boolean ignoreCheckingDeadPile) {
return super.checkPlayRequirements(playerId, game, self, withTwilightRemoved, twilightModifier, ignoreRoamingPenalty, ignoreCheckingDeadPile)
&& PlayConditions.canSpot(game, Race.MAN, Keyword.RING_BOUND);
}
@Override
protected List<ActivateCardAction> getExtraInPlayPhaseActions(final String playerId, LotroGame game, final PhysicalCard self) {
if (PlayConditions.canUseFPCardDuringPhase(game, Phase.SKIRMISH, self)

View File

@@ -232,6 +232,9 @@ public class HallServer extends AbstractServer {
else
collection = _collectionDao.getCollectionForPlayer(player, collectionType.getCode());
if (collection == null)
throw new HallException("You don't have cards in the required collection to play in this format");
Map<String, Integer> deckCardCounts = CollectionUtils.getTotalCardCountForDeck(lotroDeck);
final Map<String, Integer> collectionCardCounts = collection.getAll();

View File

@@ -1,4 +1,7 @@
<pre style="font-size:80%">
<b>7 Jan. 2012</b>
- "Damrod" now correctly checks his spot play condition.
<b>6 Jan. 2012</b>
- "Uruk Warrior" now correctly can use it's ability in Maneuver phase, rather than in Shadow phase.