Fixing "Shoulder to Shoulder" bug and introducing "rules" card.
This commit is contained in:
@@ -48,10 +48,11 @@ public class Card1_059 extends AbstractLotroCardBlueprint {
|
||||
|
||||
if (PlayConditions.canUseFPCardDuringPhase(game.getGameState(), Phase.MANEUVER, self)
|
||||
&& (
|
||||
Filters.canSpot(game.getGameState(), game.getModifiersQuerying(), Filters.canExert(),
|
||||
Filters.canSpot(game.getGameState(), game.getModifiersQuerying(),
|
||||
Filters.or(
|
||||
Filters.keyword(Keyword.ELF),
|
||||
Filters.keyword(Keyword.DWARF))))) {
|
||||
Filters.keyword(Keyword.DWARF)),
|
||||
Filters.canExert()))) {
|
||||
final CostToEffectAction action = new CostToEffectAction(self, Keyword.MANEUVER, "Use Shoulder to Shoulder");
|
||||
|
||||
List<Effect> possibleCosts = new LinkedList<Effect>();
|
||||
|
||||
@@ -16,17 +16,21 @@ var Card = Class.extend({
|
||||
this.cardId = cardId;
|
||||
this.owner = owner;
|
||||
this.attachedCards = new Array();
|
||||
if (cardCache[blueprintId] != null) {
|
||||
var cardFromCache = cardCache[blueprintId];
|
||||
this.horizontal = cardFromCache.horizontal;
|
||||
this.imageUrl = cardFromCache.imageUrl;
|
||||
if (blueprintId == "rules") {
|
||||
this.imageUrl = "/gemp-lotr/images/rules.png";
|
||||
} else {
|
||||
this.imageUrl = this.getUrlByBlueprintId(blueprintId);
|
||||
this.horizontal = this.isHorizontal(blueprintId);
|
||||
cardCache[blueprintId] = {
|
||||
imageUrl: this.imageUrl,
|
||||
horizontal: this.horizontal
|
||||
};
|
||||
if (cardCache[blueprintId] != null) {
|
||||
var cardFromCache = cardCache[blueprintId];
|
||||
this.horizontal = cardFromCache.horizontal;
|
||||
this.imageUrl = cardFromCache.imageUrl;
|
||||
} else {
|
||||
this.imageUrl = this.getUrlByBlueprintId(blueprintId);
|
||||
this.horizontal = this.isHorizontal(blueprintId);
|
||||
cardCache[blueprintId] = {
|
||||
imageUrl: this.imageUrl,
|
||||
horizontal: this.horizontal
|
||||
};
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user