mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-29 13:02:46 +02:00
Using held items in some places
This commit is contained in:
parent
1cb956e872
commit
2b077151ef
@ -52,11 +52,7 @@ import { type DamageResult, PokemonMove, type TurnMove } from "#app/field/pokemo
|
||||
import type Pokemon from "#app/field/pokemon";
|
||||
import { HitResult, MoveResult } from "#app/field/pokemon";
|
||||
import { getPokemonNameWithAffix } from "#app/messages";
|
||||
import {
|
||||
ContactHeldItemTransferChanceModifier,
|
||||
EnemyAttackStatusEffectChanceModifier,
|
||||
EnemyEndureChanceModifier,
|
||||
} from "#app/modifier/modifier";
|
||||
import { EnemyAttackStatusEffectChanceModifier, EnemyEndureChanceModifier } from "#app/modifier/modifier";
|
||||
import { PokemonPhase } from "#app/phases/pokemon-phase";
|
||||
import { BooleanHolder, isNullOrUndefined, NumberHolder } from "#app/utils/common";
|
||||
import type { nil } from "#app/utils/common";
|
||||
@ -999,7 +995,7 @@ export class MoveEffectPhase extends PokemonPhase {
|
||||
|
||||
// Apply Grip Claw's chance to steal an item from the target
|
||||
if (this.move instanceof AttackMove) {
|
||||
globalScene.applyModifiers(ContactHeldItemTransferChanceModifier, this.player, user, target);
|
||||
applyHeldItems(ITEM_EFFECT.CONTACT_ITEM_STEAL_CHANCE, { pokemon: user, target: target });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -5,11 +5,7 @@ import { WeatherType } from "#app/enums/weather-type";
|
||||
import { TurnEndEvent } from "#app/events/battle-scene";
|
||||
import type Pokemon from "#app/field/pokemon";
|
||||
import { getPokemonNameWithAffix } from "#app/messages";
|
||||
import {
|
||||
EnemyTurnHealModifier,
|
||||
EnemyStatusEffectHealChanceModifier,
|
||||
TurnHeldItemTransferModifier,
|
||||
} from "#app/modifier/modifier";
|
||||
import { EnemyTurnHealModifier, EnemyStatusEffectHealChanceModifier } from "#app/modifier/modifier";
|
||||
import i18next from "i18next";
|
||||
import { FieldPhase } from "./field-phase";
|
||||
import { globalScene } from "#app/global-scene";
|
||||
@ -53,7 +49,8 @@ export class TurnEndPhase extends FieldPhase {
|
||||
}
|
||||
|
||||
applyHeldItems(ITEM_EFFECT.TURN_END_STATUS, { pokemon: pokemon });
|
||||
globalScene.applyModifiers(TurnHeldItemTransferModifier, pokemon.isPlayer(), pokemon);
|
||||
|
||||
applyHeldItems(ITEM_EFFECT.TURN_END_ITEM_STEAL, { pokemon: pokemon });
|
||||
|
||||
pokemon.tempSummonData.turnCount++;
|
||||
pokemon.tempSummonData.waveTurnCount++;
|
||||
|
Loading…
Reference in New Issue
Block a user