package cfvbaibai.cardfantasy.engine.skill;

import cfvbaibai.cardfantasy.GameUI;
import cfvbaibai.cardfantasy.data.Skill;
import cfvbaibai.cardfantasy.data.SkillType;
import cfvbaibai.cardfantasy.engine.CardInfo;
import cfvbaibai.cardfantasy.engine.EntityInfo;
import cfvbaibai.cardfantasy.engine.SkillResolver;

public class NoEffect {
    public static boolean isSkillBlocked(SkillResolver resolver, Skill cardSkill, Skill attackSkill, EntityInfo attacker, CardInfo defender) {
        if (attackSkill.getType() == SkillType.虚弱 ||
            attackSkill.getType() == SkillType.战争怒吼 ||
            attackSkill.getType() == SkillType.死亡印记 ||
            attackSkill.getType() == SkillType.魔力法阵 ||
            attackSkill.getType() == SkillType.沉默 ||
            attackSkill.getType() == SkillType.大地之盾 ||
            attackSkill.getType() == SkillType.裂伤 ||
            attackSkill.getType() == SkillType.时光倒流 ||
            attackSkill.getType() == SkillType.圣光洗礼 ||
            attackSkill.getType() == SkillType.森林沐浴 ||
            attackSkill.getType() == SkillType.蛮荒威压 ||
            attackSkill.getType() == SkillType.地狱同化) {
            GameUI ui = resolver.getStage().getUI();
            ui.useSkill(defender, attacker, cardSkill, true);
            ui.blockSkill(attacker, defender, cardSkill, attackSkill);
            return true;
        } else {
            return false;
        }
    }
}

package cfvbaibai.cardfantasy.engine.skill;

import cfvbaibai.cardfantasy.GameUI;
import cfvbaibai.cardfantasy.data.Skill;
import cfvbaibai.cardfantasy.data.SkillType;
import cfvbaibai.cardfantasy.engine.CardInfo;
import cfvbaibai.cardfantasy.engine.EntityInfo;
import cfvbaibai.cardfantasy.engine.SkillResolver;

public class NoEffect {
    public static boolean isSkillBlocked(SkillResolver resolver, Skill cardSkill, Skill attackSkill, EntityInfo attacker, CardInfo defender) {
        if (attackSkill.getType() == SkillType.虚弱 ||
            attackSkill.getType() == SkillType.战争怒吼 ||
            attackSkill.getType() == SkillType.死亡印记 ||
            attackSkill.getType() == SkillType.魔力法阵 ||
            attackSkill.getType() == SkillType.沉默 ||
            attackSkill.getType() == SkillType.大地之盾 ||
            attackSkill.getType() == SkillType.一闪 ||
            attackSkill.getType() == SkillType.裂伤 ||
            attackSkill.getType() == SkillType.时光倒流 ||
            attackSkill.getType() == SkillType.圣光洗礼 ||
            attackSkill.getType() == SkillType.森林沐浴 ||
            attackSkill.getType() == SkillType.蛮荒威压 ||
            attackSkill.getType() == SkillType.地狱同化) {
            GameUI ui = resolver.getStage().getUI();
            ui.useSkill(defender, attacker, cardSkill, true);
            ui.blockSkill(attacker, defender, cardSkill, attackSkill);
            return true;
        } else {
            return false;
        }
    }
}

Fix issue that 一闪 can make 魔王魔神 faint