theForsaken/src/main/java/theForsaken/cards/BlightOfFamine.java
@Override
    public void use(AbstractPlayer p, AbstractMonster mon) {
        if (dontTriggerOnUseCard) {
            AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(p, p, new VulnerablePower(p, magicNumber, false), magicNumber));
            AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(p, p, new WeakPower(p, magicNumber, false), magicNumber));
            for (AbstractMonster m : AbstractDungeon.getCurrRoom().monsters.monsters) {
                AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(m, p, new VulnerablePower(m, magicNumber, false), magicNumber));
                AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(m, p, new WeakPower(m, magicNumber, false), magicNumber));
            }
        } else {
            if (p.hasPower(VulnerablePower.POWER_ID)) {
                AbstractPower v = p.getPower(VulnerablePower.POWER_ID);
                AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(mon, p, new VulnerablePower(mon, v.amount, false), v.amount));
                AbstractDungeon.actionManager.addToBottom(new RemoveSpecificPowerAction(p, p, v));
            }
            if (p.hasPower(WeakPower.POWER_ID)) {
                AbstractPower w = p.getPower(WeakPower.POWER_ID);
                AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(mon, p, new WeakPower(mon, w.amount, false), w.amount));
                AbstractDungeon.actionManager.addToBottom(new RemoveSpecificPowerAction(p, p, w));
            }
        }
    }
// Actions the card should do.
Actions the card should do.
Actions the card should do .
@Override
    public void use(AbstractPlayer p, AbstractMonster mon) {
        if (dontTriggerOnUseCard) {
            AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(p, p, new VulnerablePower(p, magicNumber, false), magicNumber));
            AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(p, p, new WeakPower(p, magicNumber, false), magicNumber));
            for (AbstractMonster m : AbstractDungeon.getCurrRoom().monsters.monsters) {
                AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(m, p, new VulnerablePower(m, magicNumber, false), magicNumber));
                AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(m, p, new WeakPower(m, magicNumber, false), magicNumber));
            }
        } else {
            if (p.hasPower(VulnerablePower.POWER_ID)) {
                AbstractPower v = p.getPower(VulnerablePower.POWER_ID);
                AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(mon, p, new VulnerablePower(mon, v.amount, false), v.amount));
                AbstractDungeon.actionManager.addToBottom(new RemoveSpecificPowerAction(p, p, v));
            }
            if (p.hasPower(WeakPower.POWER_ID)) {
                AbstractPower w = p.getPower(WeakPower.POWER_ID);
                AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(mon, p, new WeakPower(mon, w.amount, false), w.amount));
                AbstractDungeon.actionManager.addToBottom(new RemoveSpecificPowerAction(p, p, w));
            }
        }
    }
@ Override public void use ( AbstractPlayer p , AbstractMonster mon ) { if ( dontTriggerOnUseCard ) { AbstractDungeon . actionManager . addToBottom ( new ApplyPowerAction ( p , p , new VulnerablePower ( p , magicNumber , false ) , magicNumber ) ) ; AbstractDungeon . actionManager . addToBottom ( new ApplyPowerAction ( p , p , new WeakPower ( p , magicNumber , false ) , magicNumber ) ) ; for ( AbstractMonster m : AbstractDungeon . getCurrRoom ( ) . monsters . monsters ) { AbstractDungeon . actionManager . addToBottom ( new ApplyPowerAction ( m , p , new VulnerablePower ( m , magicNumber , false ) , magicNumber ) ) ; AbstractDungeon . actionManager . addToBottom ( new ApplyPowerAction ( m , p , new WeakPower ( m , magicNumber , false ) , magicNumber ) ) ; } } else { if ( p . hasPower ( VulnerablePower . POWER_ID ) ) { AbstractPower v = p . getPower ( VulnerablePower . POWER_ID ) ; AbstractDungeon . actionManager . addToBottom ( new ApplyPowerAction ( mon , p , new VulnerablePower ( mon , v . amount , false ) , v . amount ) ) ; AbstractDungeon . actionManager . addToBottom ( new RemoveSpecificPowerAction ( p , p , v ) ) ; } if ( p . hasPower ( WeakPower . POWER_ID ) ) { AbstractPower w = p . getPower ( WeakPower . POWER_ID ) ; AbstractDungeon . actionManager . addToBottom ( new ApplyPowerAction ( mon , p , new WeakPower ( mon , w . amount , false ) , w . amount ) ) ; AbstractDungeon . actionManager . addToBottom ( new RemoveSpecificPowerAction ( p , p , w ) ) ; } } }
Actions the card should do.
Actions the card should do .