(Almost) all dwarven cards
This commit is contained in:
@@ -885,6 +885,52 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"40_31": {
|
||||
"title": "*Thorin III",
|
||||
"subtitle": "Lord of the Longbeards",
|
||||
"side": "free people",
|
||||
"culture": "dwarven",
|
||||
"cost": 2,
|
||||
"type": "companion",
|
||||
"race": "dwarf",
|
||||
"strength": 6,
|
||||
"vitality": 3,
|
||||
"resistance": 6,
|
||||
"keyword": "damage+1",
|
||||
"effects": {
|
||||
"type": "modifyStrength",
|
||||
"filter": "self",
|
||||
"amount": 2,
|
||||
"condition": {
|
||||
"type": "canSpot",
|
||||
"filter": "culture(dwarven),condition,hasStackedCount(3,culture(dwarven))"
|
||||
}
|
||||
}
|
||||
},
|
||||
"40_32": {
|
||||
"title": "*Well Prepared",
|
||||
"side": "free people",
|
||||
"culture": "dwarven",
|
||||
"cost": 1,
|
||||
"type": "condition",
|
||||
"keyword": "support area",
|
||||
"effects": {
|
||||
"type": "trigger",
|
||||
"trigger": {
|
||||
"type": "played",
|
||||
"filter": "side(shadow),event"
|
||||
},
|
||||
"requirement": {
|
||||
"type": "canSpot",
|
||||
"filter": "self,hasStackedCount(3,any)"
|
||||
},
|
||||
"effect": {
|
||||
"type": "exert",
|
||||
"player": "shadowPlayer",
|
||||
"filter": "choose(minion)"
|
||||
}
|
||||
}
|
||||
},
|
||||
"40_184": {
|
||||
"title": "Black Steed",
|
||||
"subtitle": "Bred to Serve",
|
||||
|
||||
@@ -10,6 +10,7 @@ import com.gempukku.lotro.common.Filterable;
|
||||
import com.gempukku.lotro.filters.Filters;
|
||||
import com.gempukku.lotro.game.PhysicalCard;
|
||||
import com.gempukku.lotro.game.state.LotroGame;
|
||||
import com.gempukku.lotro.logic.GameUtils;
|
||||
import com.gempukku.lotro.logic.actions.CostToEffectAction;
|
||||
import com.gempukku.lotro.logic.timing.Effect;
|
||||
import com.gempukku.lotro.logic.timing.EffectResult;
|
||||
@@ -21,6 +22,8 @@ public class PlayerResolver {
|
||||
public static PlayerSource resolvePlayer(String type, CardGenerationEnvironment environment) throws InvalidCardDefinitionException {
|
||||
if (type.equals("owner"))
|
||||
return (playerId, game, self, effectResult, effect) -> self.getOwner();
|
||||
else if (type.equals("shadowPlayer"))
|
||||
return (playerId, game, self, effectResult, effect) -> GameUtils.getFirstShadowPlayer(game);
|
||||
else if (type.equals("fp"))
|
||||
return ((playerId, game, self, effectResult, effect) -> game.getGameState().getCurrentPlayerId());
|
||||
else if (type.startsWith("owner(") && type.endsWith(")")) {
|
||||
|
||||
Reference in New Issue
Block a user