mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-03-21 17:25:10 -05:00
Fix Stomping Tantrum incorrectly doubling after canceled two-turn moves (#11760)
* fix stomping tantrum not doubling when fly is canceled by smack down * Update sim/battle-actions.ts Co-authored-by: André Bastos Dias <80102738+andrebastosdias@users.noreply.github.com> --------- Co-authored-by: TurboRx <TurboRx@users.noreply.github.com> Co-authored-by: André Bastos Dias <80102738+andrebastosdias@users.noreply.github.com>
This commit is contained in:
parent
ae43883ed1
commit
7a55285dd1
|
|
@ -485,10 +485,13 @@ export class BattleActions {
|
|||
}
|
||||
}
|
||||
|
||||
if (!this.battle.singleEvent('TryMove', move, null, pokemon, target, move) ||
|
||||
!this.battle.runEvent('TryMove', pokemon, target, move)) {
|
||||
let tryMoveResult = this.battle.singleEvent('TryMove', move, null, pokemon, target, move);
|
||||
if (tryMoveResult) {
|
||||
tryMoveResult = this.battle.runEvent('TryMove', pokemon, target, move);
|
||||
}
|
||||
if (!tryMoveResult) {
|
||||
move.mindBlownRecoil = false;
|
||||
return false;
|
||||
return tryMoveResult;
|
||||
}
|
||||
|
||||
this.battle.singleEvent('UseMoveMessage', move, null, pokemon, target, move);
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ describe('Stomping Tantrum', () => {
|
|||
battle.makeChoices('move stompingtantrum', 'auto');
|
||||
});
|
||||
|
||||
it.skip(`should not double its Base Power if the user dropped mid-Fly due to Smack Down`, () => {
|
||||
it(`should not double its Base Power if the user dropped mid-Fly due to Smack Down`, () => {
|
||||
battle = common.createBattle([[
|
||||
{ species: 'Magikarp', moves: ['fly', 'stompingtantrum'] },
|
||||
], [
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user