Begin implementing abilities

This commit is contained in:
Flashfyre committed 2023-04-26 23:33:13 -04:00
1 parent f790a5ff2a
commit c614295b5e
6 files changed
+234 -86

No files matched your search

+1 -2
View File
@@ -9,7 +9,6 @@ import { Type } from "./type";
import * as Utils from "../utils";
import { WeatherType } from "./weather";
import { ArenaTagType, ArenaTrapTag } from "./arena-tag";
import { FlinchChanceModifier } from "../modifier/modifier";
export enum MoveCategory {
PHYSICAL,
@@ -1095,7 +1094,7 @@ export class StatChangeAttr extends MoveEffectAttr {
if (move.chance < 0 || move.chance === 100 || Utils.randInt(100) < move.chance) {
const levels = this.getLevels(user);
user.scene.unshiftPhase(new StatChangePhase(user.scene, user.isPlayer() === this.selfTarget, this.stats, levels));
user.scene.unshiftPhase(new StatChangePhase(user.scene, user.isPlayer() === this.selfTarget, this.selfTarget, this.stats, levels));
return true;
}