package cfvbaibai.cardfantasy.engine.feature;

import java.util.List;

import cfvbaibai.cardfantasy.engine.CardInfo;
import cfvbaibai.cardfantasy.engine.FeatureInfo;
import cfvbaibai.cardfantasy.engine.FeatureResolver;
import cfvbaibai.cardfantasy.engine.HeroDieSignal;
import cfvbaibai.cardfantasy.engine.Player;

public final class AllDelayFeature {
    public static void apply(FeatureInfo featureInfo, FeatureResolver resolver, CardInfo attacker, Player defender)
            throws HeroDieSignal {
        if (attacker.hasUsed(featureInfo)) {
            return;
        }
        List<CardInfo> allHandCards = defender.getHand().toList();
        for (CardInfo card : allHandCards) {
            int summonDelay = card.getSummonDelay();
            if (summonDelay > 0) {
                card.setSummonDelay(summonDelay + 1);
            }
        }
        attacker.setUsed(featureInfo);
    }
}

@@ -634,24 +634,126 @@
 ).toList();%0A
+        resolver.getStage().getUI().useSkill(attacker, allHandCards, featureInfo.getFeature(), true);%0A
         for 

Add animation for AllDelayFeature.