"Peace of Mind"

This commit is contained in:
marcins78@gmail.com
2011-10-28 14:45:35 +00:00
parent 498517eee0
commit 2b74f0a67e

View File

@@ -0,0 +1,41 @@
package com.gempukku.lotro.cards.set7.gandalf;
import com.gempukku.lotro.cards.AbstractEvent;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.actions.PlayEventAction;
import com.gempukku.lotro.common.Culture;
import com.gempukku.lotro.common.Phase;
import com.gempukku.lotro.common.Race;
import com.gempukku.lotro.common.Side;
import com.gempukku.lotro.filters.Filters;
import com.gempukku.lotro.game.PhysicalCard;
import com.gempukku.lotro.game.state.LotroGame;
import com.gempukku.lotro.logic.effects.ChooseAndHealCharactersEffect;
/**
* Set: The Return of the King
* Side: Free
* Culture: Gandalf
* Twilight Cost: 4
* Type: Event • Regroup
* Game Text: Spot Gandalf to heal an unbound Hobbit 3 times.
*/
public class Card7_046 extends AbstractEvent {
public Card7_046() {
super(Side.FREE_PEOPLE, 4, Culture.GANDALF, "Peace of Mind", Phase.REGROUP);
}
@Override
public boolean checkPlayRequirements(String playerId, LotroGame game, PhysicalCard self, int twilightModifier) {
return super.checkPlayRequirements(playerId, game, self, twilightModifier)
&& PlayConditions.canSpot(game, Filters.name("Gandalf"));
}
@Override
public PlayEventAction getPlayCardAction(String playerId, LotroGame game, PhysicalCard self, int twilightModifier) {
PlayEventAction action = new PlayEventAction(self);
action.appendEffect(
new ChooseAndHealCharactersEffect(action, playerId, 1, 1, 3, Race.HOBBIT, Filters.unboundCompanion));
return action;
}
}