package com.gempukku.lotro.cards.effects;

import com.gempukku.lotro.game.PhysicalCard;
import com.gempukku.lotro.game.state.GameState;
import com.gempukku.lotro.game.state.LotroGame;
import com.gempukku.lotro.logic.timing.UnrespondableEffect;

public class AttachCardEffect extends UnrespondableEffect {
    private PhysicalCard _physicalCard;
    private PhysicalCard _targetCard;

    public AttachCardEffect(PhysicalCard physicalCard, PhysicalCard targetCard) {
        _physicalCard = physicalCard;
        _targetCard = targetCard;
    }

    @Override
    public void doPlayEffect(LotroGame game) {
        GameState gameState = game.getGameState();
        gameState.attachCard(_physicalCard, _targetCard);
        gameState.startAffecting(_physicalCard, game.getModifiersEnvironment());
    }
}
