theForsaken/src/main/java/theForsaken/cards/CorruptedWord.java
@Override
    public void use(AbstractPlayer p, AbstractMonster m) {
        if (this.dontTriggerOnUseCard) {
            AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(p, p, new PoisonPower(p, p, magicNumber), magicNumber, AttackEffect.POISON));
            int amount = magicNumber;
            if (upgraded) {
                amount *= 2;
            }
            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, magicNumber), magicNumber, AttackEffect.POISON));
                }
            }
        } else if (p != null) {
            if (p.hasPower(PoisonPower.POWER_ID)) {
                int amount = p.getPower(PoisonPower.POWER_ID).amount;
                AbstractDungeon.actionManager.addToBottom(new RemoveSpecificPowerAction(p, p, PoisonPower.POWER_ID));
                AbstractMonster mo = AbstractDungeon.getRandomMonster();
                if (mo != null) {
                    AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(mo, p, new PoisonPower(mo, p, amount), amount, AttackEffect.POISON));
                }
            }
        }
    }
// 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) {
            AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(p, p, new PoisonPower(p, p, magicNumber), magicNumber, AttackEffect.POISON));
            int amount = magicNumber;
            if (upgraded) {
                amount *= 2;
            }
            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, magicNumber), magicNumber, AttackEffect.POISON));
                }
            }
        } else if (p != null) {
            if (p.hasPower(PoisonPower.POWER_ID)) {
                int amount = p.getPower(PoisonPower.POWER_ID).amount;
                AbstractDungeon.actionManager.addToBottom(new RemoveSpecificPowerAction(p, p, PoisonPower.POWER_ID));
                AbstractMonster mo = AbstractDungeon.getRandomMonster();
                if (mo != null) {
                    AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(mo, p, new PoisonPower(mo, p, amount), amount, AttackEffect.POISON));
                }
            }
        }
    }
@ Override public void use ( AbstractPlayer p , AbstractMonster m ) { if ( this . dontTriggerOnUseCard ) { AbstractDungeon . actionManager . addToBottom ( new ApplyPowerAction ( p , p , new PoisonPower ( p , p , magicNumber ) , magicNumber , AttackEffect . POISON ) ) ; int amount = magicNumber ; if ( upgraded ) { amount *= 2 ; } 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 , magicNumber ) , magicNumber , AttackEffect . POISON ) ) ; } } } else if ( p != null ) { if ( p . hasPower ( PoisonPower . POWER_ID ) ) { int amount = p . getPower ( PoisonPower . POWER_ID ) . amount ; AbstractDungeon . actionManager . addToBottom ( new RemoveSpecificPowerAction ( p , p , PoisonPower . POWER_ID ) ) ; AbstractMonster mo = AbstractDungeon . getRandomMonster ( ) ; if ( mo != null ) { AbstractDungeon . actionManager . addToBottom ( new ApplyPowerAction ( mo , p , new PoisonPower ( mo , p , amount ) , amount , AttackEffect . POISON ) ) ; } } } }
Actions the card should do.
Actions the card should do .