Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Tera Blast's interaction with Unaware #10897

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion sim/pokemon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,10 @@ export class Pokemon {

// stat boosts
if (!unboosted) {
const boosts = this.battle.runEvent('ModifyBoost', this, null, null, { ...this.boosts });
let boosts = this.boosts;
if (!unmodified) {
boosts = this.battle.runEvent('ModifyBoost', this, null, null, { ...boosts });
}
let boost = boosts[statName];
const boostTable = [1, 1.5, 2, 2.5, 3, 3.5, 4];
if (boost > 6) boost = 6;
Expand Down
3 changes: 1 addition & 2 deletions test/sim/moves/terablast.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ describe('Tera Blast', () => {
assert.equal(battle.p1.pokemon[0].lastMove.category, 'Special');
});

// Skipped until https://github.com/smogon/pokemon-showdown/issues/9381 is fixed.
it.skip(`should be a special attack when terastallized even if target ignores stat changes`, () => {
it(`should be a special attack when terastallized even if target ignores stat changes`, () => {
const battle = common.gen(9).createBattle([[
// Regidrago has equal base attack and special attack stats.
{ species: 'regidrago', ability: 'dragonsmaw', moves: ['terablast', 'dragondance'] },
Expand Down