mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-21 17:12:44 +02:00
[Balance] Remove Dynamax Cannon being a discouraged move for AI (#5708)
Remove dynamax cannon from being discouraged on Eternatus Phase 2
This commit is contained in:
parent
30e74eaaa8
commit
38d75897bb
@ -7665,20 +7665,6 @@ export class AverageStatsAttr extends MoveEffectAttr {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class DiscourageFrequentUseAttr extends MoveAttr {
|
|
||||||
getUserBenefitScore(user: Pokemon, target: Pokemon, move: Move): number {
|
|
||||||
const lastMoves = user.getLastXMoves(4);
|
|
||||||
console.log(lastMoves);
|
|
||||||
for (let m = 0; m < lastMoves.length; m++) {
|
|
||||||
if (lastMoves[m].move === move.id) {
|
|
||||||
return (4 - (m + 1)) * -10;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export class MoneyAttr extends MoveEffectAttr {
|
export class MoneyAttr extends MoveEffectAttr {
|
||||||
constructor() {
|
constructor() {
|
||||||
super(true, {firstHitOnly: true });
|
super(true, {firstHitOnly: true });
|
||||||
@ -10517,8 +10503,7 @@ export function initMoves() {
|
|||||||
} else {
|
} else {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
})
|
}),
|
||||||
.attr(DiscourageFrequentUseAttr),
|
|
||||||
|
|
||||||
new AttackMove(Moves.SNIPE_SHOT, PokemonType.WATER, MoveCategory.SPECIAL, 80, 100, 15, -1, 0, 8)
|
new AttackMove(Moves.SNIPE_SHOT, PokemonType.WATER, MoveCategory.SPECIAL, 80, 100, 15, -1, 0, 8)
|
||||||
.attr(HighCritAttr)
|
.attr(HighCritAttr)
|
||||||
|
Loading…
Reference in New Issue
Block a user