Add quicker party member EXP display and fix some minor bugs

This commit is contained in:
Flashfyre committed 2023-10-04 17:24:28 -04:00
1 parent 46c31f9595
commit 798f6cc53f
11 files changed
+179 -14

No files matched your search

+1 -1
View File
@@ -203,7 +203,7 @@ export class ConfusedTag extends BattlerTag {
if (Utils.randInt(2)) {
const atk = pokemon.getBattleStat(Stat.ATK);
const def = pokemon.getBattleStat(Stat.DEF);
const damage = Math.ceil(((((2 * pokemon.level / 5 + 2) * 40 * atk / def) / 50) + 2) * ((Utils.randInt(15) + 85) / 100));
const damage = Math.ceil(((((2 * pokemon.level / 5 + 2) * 40 * atk / def) / 50) + 2) * (Utils.randInt(15, 85) / 100));
pokemon.scene.queueMessage('It hurt itself in its\nconfusion!');
pokemon.scene.unshiftPhase(new DamagePhase(pokemon.scene, pokemon.getBattlerIndex()));
pokemon.damage(damage);