package com.ghost.technic.server.card.keyword.impl;

import com.ghost.technic.server.Player;
import com.ghost.technic.server.card.keyword.KeywordEffect;
import com.ghost.technic.server.card.playable.PlayableCard;
import com.ghost.technic.server.game.GameActionService;

public class AlphaEffect implements KeywordEffect {
    //    @Override
//    public void onPlay(GameActionService service, PlayableCard card, Player controller) {
//        if (!service.isFirstCardPlayedThisTurn(card)) {
//            throw new IllegalStateException("Alpha cards must be the first card played on your turn.");
//        }
//    }
    @Override
    public void onPlay(GameActionService service, PlayableCard card, Player controller) {
        if (!service.isFirstCardPlayedThisTurn(card)) {
            service.flagRuleViolation(card, "Alpha cards must be the first card played on your turn.");
        }
    }
}
