"Gimli's Battle Axe"

This commit is contained in:
marcins78@gmail.com
2011-10-27 10:54:35 +00:00
parent dd0c81564c
commit 4b8c744dcf
2 changed files with 66 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
package com.gempukku.lotro.cards.modifiers.conditions;
import com.gempukku.lotro.game.state.GameState;
import com.gempukku.lotro.logic.modifiers.Condition;
import com.gempukku.lotro.logic.modifiers.ModifiersQuerying;
public class ThreatCondition implements Condition {
private int _count;
public ThreatCondition(int count) {
_count = count;
}
@Override
public boolean isFullfilled(GameState gameState, ModifiersQuerying modifiersQuerying) {
return gameState.getThreats() >= _count;
}
}

View File

@@ -0,0 +1,48 @@
package com.gempukku.lotro.cards.set7.dwarven;
import com.gempukku.lotro.cards.AbstractAttachableFPPossession;
import com.gempukku.lotro.cards.modifiers.ArcheryTotalModifier;
import com.gempukku.lotro.cards.modifiers.conditions.ThreatCondition;
import com.gempukku.lotro.common.*;
import com.gempukku.lotro.filters.Filters;
import com.gempukku.lotro.game.PhysicalCard;
import com.gempukku.lotro.game.state.LotroGame;
import com.gempukku.lotro.logic.modifiers.KeywordModifier;
import com.gempukku.lotro.logic.modifiers.Modifier;
import com.gempukku.lotro.logic.modifiers.StrengthModifier;
import java.util.LinkedList;
import java.util.List;
/**
* Set: The Return of the King
* Side: Free
* Culture: Dwarven
* Twilight Cost: 2
* Type: Possession • Hand Weapon
* Strength: +2
* Game Text: Bearer must be a dwarf. While you can spot a threat, bearer is damage +1. While you can spot 2 threats,
* bearer is strength +1. While you can spot 3 threats, the fellowship archery total is +1.
*/
public class Card7_009 extends AbstractAttachableFPPossession {
public Card7_009() {
super(2, 2, 0, Culture.DWARVEN, PossessionClass.HAND_WEAPON, "Gimli's Battle Axe", true);
}
@Override
protected Filterable getValidTargetFilter(String playerId, LotroGame game, PhysicalCard self) {
return Race.DWARF;
}
@Override
protected List<? extends Modifier> getNonBasicStatsModifiers(PhysicalCard self) {
List<Modifier> modifiers = new LinkedList<Modifier>();
modifiers.add(
new KeywordModifier(self, Filters.hasAttached(self), new ThreatCondition(1), Keyword.DAMAGE, 1));
modifiers.add(
new StrengthModifier(self, Filters.hasAttached(self), new ThreatCondition(2), 1));
modifiers.add(
new ArcheryTotalModifier(self, Side.FREE_PEOPLE, new ThreatCondition(3), 1));
return modifiers;
}
}