"Streets of Bree"
This commit is contained in:
@@ -21,6 +21,7 @@ public class TransferPermanentEffect extends AbstractEffect {
|
||||
public boolean isPlayableInFull(LotroGame game) {
|
||||
return _targetCard.getZone().isInPlay()
|
||||
&& _physicalCard.getZone().isInPlay()
|
||||
&& game.getModifiersQuerying().canBeTransferred(game.getGameState(), _physicalCard)
|
||||
&& game.getModifiersQuerying().canHaveTransferredOn(game.getGameState(), _physicalCard, _targetCard);
|
||||
}
|
||||
|
||||
|
||||
@@ -66,6 +66,9 @@ public class ChooseAndTransferAttachableEffect extends AbstractEffect {
|
||||
if (!(transferredCard.getBlueprint() instanceof AbstractAttachable))
|
||||
return false;
|
||||
|
||||
if (!modifiersQuerying.canBeTransferred(gameState, transferredCard))
|
||||
return false;
|
||||
|
||||
AbstractAttachable attachable = (AbstractAttachable) transferredCard.getBlueprint();
|
||||
return Filters.canSpot(game.getGameState(), game.getModifiersQuerying(), getValidTargetFilter(game, transferredCard, attachable));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.gempukku.lotro.cards.set18.site;
|
||||
|
||||
import com.gempukku.lotro.cards.AbstractNewSite;
|
||||
import com.gempukku.lotro.cards.modifiers.CantBeTransferredModifier;
|
||||
import com.gempukku.lotro.common.CardType;
|
||||
import com.gempukku.lotro.common.Keyword;
|
||||
import com.gempukku.lotro.game.PhysicalCard;
|
||||
import com.gempukku.lotro.logic.modifiers.Modifier;
|
||||
|
||||
/**
|
||||
* Set: Treachery & Deceit
|
||||
* Twilight Cost: 0
|
||||
* Type: Site
|
||||
* Game Text: Dwelling. While the fellowship is at this site, followers cannot be transfered to a character.
|
||||
*/
|
||||
public class Card18_140 extends AbstractNewSite {
|
||||
public Card18_140() {
|
||||
super("Streets of Bree", 0, Direction.LEFT);
|
||||
addKeyword(Keyword.DWELLING);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Modifier getAlwaysOnModifier(PhysicalCard self) {
|
||||
return new CantBeTransferredModifier(self, CardType.FOLLOWER);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user