patched transform & mimic interaction
parent
267d153a5a
commit
f00b034798
|
@ -36,3 +36,4 @@ src/data/battle-anim-data.ts
|
||||||
src/overrides.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 {
|
applyPostAttack(pokemon: Pokemon, passive: boolean, attacker: Pokemon, move: PokemonMove, hitResult: HitResult, args: any[]): boolean {
|
||||||
if (!this.condition(pokemon, attacker, move.getMove())) return false;
|
if (!this.condition(pokemon, attacker, move.getMove())) return false;
|
||||||
|
console.log(`locked in the move: ${allMoves[pokemon.summonData.choicedMove].name}!`)
|
||||||
|
|
||||||
|
if (!(move.moveId === Moves.MIMIC || move.moveId === Moves.TRANSFORM)){
|
||||||
pokemon.summonData.choicedMove = move.moveId;
|
pokemon.summonData.choicedMove = move.moveId;
|
||||||
pokemon.scene.queueMessage(getPokemonMessage(pokemon ,` is locked into ${allMoves[pokemon.summonData.choicedMove].name}!`));
|
pokemon.scene.queueMessage(getPokemonMessage(pokemon ,` is locked into ${allMoves[pokemon.summonData.choicedMove].name}!`));
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3650,6 +3650,7 @@ export class MovesetCopyMoveAttr extends OverrideMoveEffectAttr {
|
||||||
|
|
||||||
user.summonData.moveset = user.getMoveset().slice(0);
|
user.summonData.moveset = user.getMoveset().slice(0);
|
||||||
user.summonData.moveset[thisMoveIndex] = new PokemonMove(copiedMove.id, 0, 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}!`));
|
user.scene.queueMessage(getPokemonMessage(user, ` copied\n${copiedMove.name}!`));
|
||||||
|
|
||||||
|
|
|
@ -2205,7 +2205,7 @@ export class MovePhase extends BattlePhase {
|
||||||
|
|
||||||
console.log(Moves[this.move.moveId]);
|
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)
|
if (this.move.moveId && this.pokemon.summonData.disabledMove === this.move.moveId)
|
||||||
this.scene.queueMessage(`${this.move.getName()} is disabled!`);
|
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)
|
if (this.move.moveId && this.pokemon.summonData.choicedMove !== Moves.NONE && this.pokemon.summonData.choicedMove !== this.move.moveId)
|
||||||
|
|
Loading…
Reference in New Issue