theForsaken/src/main/java/theForsaken/relics/ScaryMask.java
@Override
    public void onUseCard(AbstractCard card, UseCardAction action) {
        if (this.active && card.type == AbstractCard.CardType.ATTACK) {
            this.active = false;
            this.pulse = false;

            if (card.target.equals(AbstractCard.CardTarget.ALL) || card.target.equals(AbstractCard.CardTarget.ALL_ENEMY)) {
                for(AbstractMonster m : AbstractDungeon.getCurrRoom().monsters.monsters) {

                    AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(m, AbstractDungeon.player, new FearPower(m, 1, false), 1));
                }
            } else {
                AbstractCreature m = action.target;
                AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(m, AbstractDungeon.player, new FearPower(m, 1, false), 1));
            }
        }
    }
// Apply 1 fear on first attack of battle
Apply 1 fear on first attack of battle
Apply 1 fear on first attack of battle
@Override
    public void onUseCard(AbstractCard card, UseCardAction action) {
        if (this.active && card.type == AbstractCard.CardType.ATTACK) {
            this.active = false;
            this.pulse = false;
            if (card.target.equals(AbstractCard.CardTarget.ALL) || card.target.equals(AbstractCard.CardTarget.ALL_ENEMY)) {
                for(AbstractMonster m : AbstractDungeon.getCurrRoom().monsters.monsters) {
                    AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(m, AbstractDungeon.player, new FearPower(m, 1, false), 1));
                }
            } else {
                AbstractCreature m = action.target;
                AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(m, AbstractDungeon.player, new FearPower(m, 1, false), 1));
            }
        }
    }
@ Override public void onUseCard ( AbstractCard card , UseCardAction action ) { if ( this . active && card . type == AbstractCard . CardType . ATTACK ) { this . active = false ; this . pulse = false ; if ( card . target . equals ( AbstractCard . CardTarget . ALL ) || card . target . equals ( AbstractCard . CardTarget . ALL_ENEMY ) ) { for ( AbstractMonster m : AbstractDungeon . getCurrRoom ( ) . monsters . monsters ) { AbstractDungeon . actionManager . addToBottom ( new ApplyPowerAction ( m , AbstractDungeon . player , new FearPower ( m , 1 , false ) , 1 ) ) ; } } else { AbstractCreature m = action . target ; AbstractDungeon . actionManager . addToBottom ( new ApplyPowerAction ( m , AbstractDungeon . player , new FearPower ( m , 1 , false ) , 1 ) ) ; } } }
Apply 1 fear on first attack of battle
Apply 1 fear on first attack of battle