mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 07:22:19 +02:00
Updated the crit formula to include the new critAlways
This commit is contained in:
parent
58863425c0
commit
b8a0b9981b
@ -1174,8 +1174,9 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||
power.value *= 1.5;
|
||||
let isCritical: boolean;
|
||||
const critOnly = new Utils.BooleanHolder(false);
|
||||
const critAlways = source.getTag(BattlerTagType.ALWAYS_CRIT);
|
||||
applyMoveAttrs(CritOnlyAttr, source, this, move, critOnly);
|
||||
if (critOnly.value)
|
||||
if (critOnly.value || critAlways)
|
||||
isCritical = true;
|
||||
else {
|
||||
const critLevel = new Utils.IntegerHolder(0);
|
||||
@ -2879,4 +2880,4 @@ export class PokemonMove {
|
||||
getName(): string {
|
||||
return this.getMove().name;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user