Skip to content

Commit

Permalink
Test interaction between Revelation Dance and Terastallization
Browse files Browse the repository at this point in the history
  • Loading branch information
shrianshChari committed Jul 28, 2023
1 parent 8c70755 commit 95dc5fb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions calc/src/test/calc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -990,6 +990,16 @@ describe('calc', () => {
testQP('Protosynthesis', {weather: 'Sun'});
testQPOverride('Quark Drive', {terrain: 'Electric'});
testQPOverride('Protosynthesis', {weather: 'Sun'});
test('Revelation Dance should change type if Pokemon Terastallized', () => {
const attacker = Pokemon('Oricorio-Pom-Pom');
const defender = Pokemon('Sandaconda');
let result = calculate(attacker, defender, Move('Revelation Dance'));
expect(result.move.type).toBe('Electric');

attacker.teraType = 'Water';
result = calculate(attacker, defender, Move('Revelation Dance'));
expect(result.move.type).toBe('Water');
});
});
});
});
Expand Down

0 comments on commit 95dc5fb

Please sign in to comment.