patched transform & mimic interaction
parent
267d153a5a
commit
f00b034798
|
@ -35,4 +35,5 @@ src/data/battle-anim-raw-data*.ts
|
|||
src/data/battle-anim-data.ts
|
||||
src/overrides.ts
|
||||
|
||||
coverage
|
||||
coverage
|
||||
src/overrides.ts
|
||||
|
|
|
@ -1185,9 +1185,12 @@ export class PostAttackLockMoveAbAttr extends PostAttackAbAttr {
|
|||
}
|
||||
applyPostAttack(pokemon: Pokemon, passive: boolean, attacker: Pokemon, move: PokemonMove, hitResult: HitResult, args: any[]): boolean {
|
||||
if (!this.condition(pokemon, attacker, move.getMove())) return false;
|
||||
console.log(`locked in the move: ${allMoves[pokemon.summonData.choicedMove].name}!`)
|
||||
|
||||
pokemon.summonData.choicedMove = move.moveId;
|
||||
pokemon.scene.queueMessage(getPokemonMessage(pokemon ,` is locked into ${allMoves[pokemon.summonData.choicedMove].name}!`));
|
||||
if (!(move.moveId === Moves.MIMIC || move.moveId === Moves.TRANSFORM)){
|
||||
pokemon.summonData.choicedMove = move.moveId;
|
||||
pokemon.scene.queueMessage(getPokemonMessage(pokemon ,` is locked into ${allMoves[pokemon.summonData.choicedMove].name}!`));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3650,7 +3650,8 @@ export class MovesetCopyMoveAttr extends OverrideMoveEffectAttr {
|
|||
|
||||
user.summonData.moveset = user.getMoveset().slice(0);
|
||||
user.summonData.moveset[thisMoveIndex] = new PokemonMove(copiedMove.id, 0, 0);
|
||||
|
||||
user.summonData.choicedMove = user.summonData.choicedMove === move.id ? copiedMove.id : user.summonData.choicedMove;
|
||||
|
||||
user.scene.queueMessage(getPokemonMessage(user, ` copied\n${copiedMove.name}!`));
|
||||
|
||||
return true;
|
||||
|
|
|
@ -2205,7 +2205,7 @@ export class MovePhase extends BattlePhase {
|
|||
|
||||
console.log(Moves[this.move.moveId]);
|
||||
|
||||
if (!this.canMove() && (this.pokemon.summonData.disabledMove !== this.pokemon.summonData.choicedMove)) { // patch for choice item - disable interaction
|
||||
if (!this.canMove() && (this.move.moveId !== Moves.STRUGGLE)) { // patch for choice item - disable interaction
|
||||
if (this.move.moveId && this.pokemon.summonData.disabledMove === this.move.moveId)
|
||||
this.scene.queueMessage(`${this.move.getName()} is disabled!`);
|
||||
if (this.move.moveId && this.pokemon.summonData.choicedMove !== Moves.NONE && this.pokemon.summonData.choicedMove !== this.move.moveId)
|
||||
|
|
Loading…
Reference in New Issue