Fix bug with fainting on force switch out
Fix bug with fainting on force switch out; move overrides in Pokemon to BattleScene
This commit is contained in:
1 parent
72dc263552
commit
96288d29ce
4 files changed
+15
-12
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import Phaser from 'phaser';
|
||||
import BattleScene, { AnySound } from '../battle-scene';
|
||||
import BattleScene, { ABILITY_OVERRIDE, AnySound, MOVE_OVERRIDE, OPP_ABILITY_OVERRIDE, OPP_MOVE_OVERRIDE } from '../battle-scene';
|
||||
import BattleInfo, { PlayerBattleInfo, EnemyBattleInfo } from '../ui/battle-info';
|
||||
import { Moves } from "../data/enums/moves";
|
||||
import Move, { HighCritAttr, HitsTagAttr, applyMoveAttrs, FixedDamageAttr, VariableAtkAttr, VariablePowerAttr, allMoves, MoveCategory, TypelessAttr, CritOnlyAttr, getMoveTargets, OneHitKOAttr, MultiHitAttr, StatusMoveTypeImmunityAttr, MoveTarget, VariableDefAttr, AttackMove, ModifiedDamageAttr, VariableMoveTypeMultiplierAttr } from "../data/move";
|
||||
@@ -47,12 +47,6 @@ export enum FieldPosition {
|
||||
RIGHT
|
||||
}
|
||||
|
||||
const ABILITY_OVERRIDE = Abilities.NONE;
|
||||
const MOVE_OVERRIDE = Moves.NONE;
|
||||
|
||||
const OPP_ABILITY_OVERRIDE = Abilities.NONE;
|
||||
const OPP_MOVE_OVERRIDE = Moves.NONE;
|
||||
|
||||
export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||
public id: integer;
|
||||
public name: string;
|
||||
|
||||
Reference in new issue
Block a user