mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-19 06:42:20 +02:00
interaction with update modifiers
This commit is contained in:
parent
6a793641ea
commit
4fcd03e680
@ -66,6 +66,8 @@ import { PlayerGender } from "#enums/player-gender";
|
|||||||
import { Species } from "#enums/species";
|
import { Species } from "#enums/species";
|
||||||
import { UiTheme } from "#enums/ui-theme";
|
import { UiTheme } from "#enums/ui-theme";
|
||||||
import { TimedEventManager } from "#app/timed-event-manager.js";
|
import { TimedEventManager } from "#app/timed-event-manager.js";
|
||||||
|
import { BattlerTagType } from "#enums/battler-tag-type";
|
||||||
|
import { Stat } from "./data/pokemon-stat";
|
||||||
|
|
||||||
export const bypassLogin = import.meta.env.VITE_BYPASS_LOGIN === "1";
|
export const bypassLogin = import.meta.env.VITE_BYPASS_LOGIN === "1";
|
||||||
|
|
||||||
@ -2391,6 +2393,9 @@ export default class BattleScene extends SceneBase {
|
|||||||
Promise.allSettled(party.map(p => {
|
Promise.allSettled(party.map(p => {
|
||||||
if (p.scene) {
|
if (p.scene) {
|
||||||
p.calculateStats();
|
p.calculateStats();
|
||||||
|
if (p.getTag(BattlerTagType.POWER_TRICK)) {
|
||||||
|
[p.stats[Stat.ATK], p.stats[Stat.DEF]] = [p.stats[Stat.DEF], p.stats[Stat.ATK]];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return p.updateInfo(instant);
|
return p.updateInfo(instant);
|
||||||
})).then(() => resolve());
|
})).then(() => resolve());
|
||||||
|
Loading…
Reference in New Issue
Block a user