change target of phase also, check conditions using the bouncer.
parent
bbbd55e265
commit
9eec2c3e3a
|
|
@ -2415,8 +2415,9 @@ export class MoveEffectPhase extends PokemonPhase {
|
||||||
this.scene.queueMessage(getPokemonMessage(targets[0], '\nbounced the move back!'));
|
this.scene.queueMessage(getPokemonMessage(targets[0], '\nbounced the move back!'));
|
||||||
const tempTargets = targets;
|
const tempTargets = targets;
|
||||||
targets = [user];
|
targets = [user];
|
||||||
|
this.targets = [user.getBattlerIndex()];
|
||||||
user = tempTargets[0];
|
user = tempTargets[0];
|
||||||
if (!this.move.getMove().applyConditions(targets[0], targets[0], this.move.getMove())) {
|
if (!this.move.getMove().applyConditions(user, targets[0], this.move.getMove())) {
|
||||||
this.scene.queueMessage(i18next.t('menu:attackFailed'));
|
this.scene.queueMessage(i18next.t('menu:attackFailed'));
|
||||||
return this.end();
|
return this.end();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue