Add test for Poison Puppeteer and Lum Berry interaction (#11375)
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled

This commit is contained in:
André Bastos Dias 2025-08-27 19:22:41 +01:00 committed by GitHub
parent c339b13ca6
commit 139e57e56a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,4 +38,14 @@ describe('Lum Berry', () => {
assert.equal(attacker.status, '');
assert(attacker.volatiles['confusion']);
});
it('should cure Poison and confusion after Poison Puppeteer activation', () => {
battle = common.createBattle();
battle.setPlayer('p1', { team: [{ species: 'Charizard', item: 'lumberry', moves: ['sleeptalk'] }] });
battle.setPlayer('p2', { team: [{ species: 'Pecharunt', ability: 'poisonpuppeteer', moves: ['toxic'] }] });
const charizard = battle.p1.active[0];
battle.makeChoices();
assert.equal(charizard.status, '');
assert(!charizard.volatiles['confusion']);
});
});