mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-04-21 00:58:33 +01:00
Update src/data/mystery-encounters/encounters/fiery-fallout-encounter.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
This commit is contained in:
parent
f80901f7b9
commit
12cd014e11
@ -186,7 +186,8 @@ export const FieryFalloutEncounter: IMysteryEncounter =
|
|||||||
// Burn random member
|
// Burn random member
|
||||||
const burnable = nonFireTypes.filter(p => isNullOrUndefined(p.status) || isNullOrUndefined(p.status.effect) || p.status?.effect === StatusEffect.BURN);
|
const burnable = nonFireTypes.filter(p => isNullOrUndefined(p.status) || isNullOrUndefined(p.status.effect) || p.status?.effect === StatusEffect.BURN);
|
||||||
if (burnable?.length > 0) {
|
if (burnable?.length > 0) {
|
||||||
const chosenPokemon = burnable[randSeedInt(burnable.length - 1)];
|
const roll = randSeedInt(burnable.length);
|
||||||
|
const chosenPokemon = burnable[roll];
|
||||||
if (chosenPokemon.trySetStatus(StatusEffect.BURN)) {
|
if (chosenPokemon.trySetStatus(StatusEffect.BURN)) {
|
||||||
// Burn applied
|
// Burn applied
|
||||||
encounter.setDialogueToken("burnedPokemon", chosenPokemon.name);
|
encounter.setDialogueToken("burnedPokemon", chosenPokemon.name);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user