mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-09-24 07:23:24 +02:00
Add missing attribute to counter
This commit is contained in:
parent
f361b8efed
commit
53fb2585aa
@ -8715,6 +8715,7 @@ export function initMoves() {
|
||||
.attr(WeightPowerAttr),
|
||||
new AttackMove(MoveId.COUNTER, PokemonType.FIGHTING, MoveCategory.PHYSICAL, -1, 100, 20, -1, -5, 1)
|
||||
.attr(CounterDamageAttr, 2, MoveCategory.PHYSICAL)
|
||||
.attr(CounterRedirectAttr, MoveCategory.PHYSICAL)
|
||||
.condition(counterAttackCondition_Physical, 3)
|
||||
.target(MoveTarget.ATTACKER),
|
||||
new AttackMove(MoveId.SEISMIC_TOSS, PokemonType.FIGHTING, MoveCategory.PHYSICAL, -1, 100, 20, -1, 0, 1)
|
||||
|
@ -709,6 +709,7 @@ export class MovePhase extends PokemonPhase {
|
||||
}
|
||||
|
||||
if (this.thirdFailureCheck()) {
|
||||
console.log("Move failed during third failure check");
|
||||
return;
|
||||
}
|
||||
|
||||
@ -730,6 +731,7 @@ export class MovePhase extends PokemonPhase {
|
||||
// TODO: Move this to the Move effect phase where it belongs.
|
||||
// Fourth failure check happens _after_ protean
|
||||
if (!move.applyConditions(user, opponent, 4)) {
|
||||
console.log("Move failed during fourth failure check");
|
||||
this.failMove();
|
||||
return;
|
||||
}
|
||||
@ -943,7 +945,6 @@ export class MovePhase extends PokemonPhase {
|
||||
applyMoveAttrs("CounterRedirectAttr", this.pokemon, null, this.move.getMove(), targetHolder);
|
||||
this.targets[0] = targetHolder.value;
|
||||
if (targetHolder.value === BattlerIndex.ATTACKER) {
|
||||
console.log("%cSkipping counter attack target resolution", "color: red");
|
||||
this.fail();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user