theForsaken/src/main/java/theForsaken/cards/CreepingInfection.java
@Override
    public void use(AbstractPlayer p, AbstractMonster m) {
        if (this.dontTriggerOnUseCard) {
            int amount = magicNumber;
            AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(p, p, new PoisonPower(p, p, amount), amount, AttackEffect.POISON));
            for (AbstractMonster monster : AbstractDungeon.getCurrRoom().monsters.monsters) {
                AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(monster, p, new PoisonPower(monster, p, amount), amount, AttackEffect.POISON));
            }
            if (p.hasRelic(PlagueMask.ID)) {
                p.getRelic(PlagueMask.ID).flash();
                AbstractMonster mo = AbstractDungeon.getRandomMonster();
                if (mo != null) {
                    AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(mo, p, new PoisonPower(mo, p, amount), amount, AttackEffect.POISON));
                }
            }
            AbstractCard copy = this.makeStatEquivalentCopy();
            copy.freeToPlayOnce = false;
            AbstractDungeon.actionManager.addToBottom(new MakeTempCardInDrawPileAction(copy, 1, true, true));
        } else {
            if (p.hasPower(PoisonPower.POWER_ID)) {
                int amount = p.getPower(PoisonPower.POWER_ID).amount;
                if (amount > 0) {
                    AbstractDungeon.actionManager.addToBottom(new ReducePowerAction(p, p, PoisonPower.POWER_ID, magicNumber));
                    AbstractDungeon.actionManager.addToBottom(new HealAction(p, p, amount));
                }
            }
        }
    }
// Actions the card should do.
Actions the card should do.
Actions the card should do .
@Override
    public void use(AbstractPlayer p, AbstractMonster m) {
        if (this.dontTriggerOnUseCard) {
            int amount = magicNumber;
            AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(p, p, new PoisonPower(p, p, amount), amount, AttackEffect.POISON));
            for (AbstractMonster monster : AbstractDungeon.getCurrRoom().monsters.monsters) {
                AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(monster, p, new PoisonPower(monster, p, amount), amount, AttackEffect.POISON));
            }
            if (p.hasRelic(PlagueMask.ID)) {
                p.getRelic(PlagueMask.ID).flash();
                AbstractMonster mo = AbstractDungeon.getRandomMonster();
                if (mo != null) {
                    AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(mo, p, new PoisonPower(mo, p, amount), amount, AttackEffect.POISON));
                }
            }
            AbstractCard copy = this.makeStatEquivalentCopy();
            copy.freeToPlayOnce = false;
            AbstractDungeon.actionManager.addToBottom(new MakeTempCardInDrawPileAction(copy, 1, true, true));
        } else {
            if (p.hasPower(PoisonPower.POWER_ID)) {
                int amount = p.getPower(PoisonPower.POWER_ID).amount;
                if (amount > 0) {
                    AbstractDungeon.actionManager.addToBottom(new ReducePowerAction(p, p, PoisonPower.POWER_ID, magicNumber));
                    AbstractDungeon.actionManager.addToBottom(new HealAction(p, p, amount));
                }
            }
        }
    }
@ Override public void use ( AbstractPlayer p , AbstractMonster m ) { if ( this . dontTriggerOnUseCard ) { int amount = magicNumber ; AbstractDungeon . actionManager . addToBottom ( new ApplyPowerAction ( p , p , new PoisonPower ( p , p , amount ) , amount , AttackEffect . POISON ) ) ; for ( AbstractMonster monster : AbstractDungeon . getCurrRoom ( ) . monsters . monsters ) { AbstractDungeon . actionManager . addToBottom ( new ApplyPowerAction ( monster , p , new PoisonPower ( monster , p , amount ) , amount , AttackEffect . POISON ) ) ; } if ( p . hasRelic ( PlagueMask . ID ) ) { p . getRelic ( PlagueMask . ID ) . flash ( ) ; AbstractMonster mo = AbstractDungeon . getRandomMonster ( ) ; if ( mo != null ) { AbstractDungeon . actionManager . addToBottom ( new ApplyPowerAction ( mo , p , new PoisonPower ( mo , p , amount ) , amount , AttackEffect . POISON ) ) ; } } AbstractCard copy = this . makeStatEquivalentCopy ( ) ; copy . freeToPlayOnce = false ; AbstractDungeon . actionManager . addToBottom ( new MakeTempCardInDrawPileAction ( copy , 1 , true , true ) ) ; } else { if ( p . hasPower ( PoisonPower . POWER_ID ) ) { int amount = p . getPower ( PoisonPower . POWER_ID ) . amount ; if ( amount > 0 ) { AbstractDungeon . actionManager . addToBottom ( new ReducePowerAction ( p , p , PoisonPower . POWER_ID , magicNumber ) ) ; AbstractDungeon . actionManager . addToBottom ( new HealAction ( p , p , amount ) ) ; } } } }
Actions the card should do.
Actions the card should do .