Skip to content

Commit 2f0ce9c

Browse files
committed
Implement Chilly Reception message
This is a bit hacky, but works in all the most common situations. I wrote this a few weeks ago but was undecided about the `[premajor]` tag format. I'm still not sure about it, but it's not like I'm going to be any more sure if I keep waiting.
1 parent 8ff6033 commit 2f0ce9c

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

data/moves.ts

+11-2
Original file line numberDiff line numberDiff line change
@@ -2484,11 +2484,20 @@ export const Moves: import('../sim/dex-moves').MoveDataTable = {
24842484
pp: 10,
24852485
priority: 0,
24862486
flags: {},
2487-
// TODO show prepare message before the "POKEMON used MOVE!" message
2488-
// This happens even before sleep shows its "POKEMON is fast asleep." message
2487+
priorityChargeCallback(source) {
2488+
source.addVolatile('chillyreception');
2489+
},
24892490
weather: 'snowscape',
24902491
selfSwitch: true,
24912492
secondary: null,
2493+
condition: {
2494+
duration: 1,
2495+
onBeforeMovePriority: 100,
2496+
onBeforeMove(source, target, move) {
2497+
if (move.id !== 'chillyreception') return;
2498+
this.add('-prepare', source, 'Chilly Reception', '[premajor]');
2499+
},
2500+
},
24922501
target: "all",
24932502
type: "Ice",
24942503
},

data/text/moves.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -896,8 +896,7 @@ export const MovesText: { [id: IDEntry]: MoveText } = {
896896
desc: "For 5 turns, the weather becomes Snow. The user switches out even if it is trapped and is replaced immediately by a selected party member. The user does not switch out if there are no unfainted party members.",
897897
shortDesc: "Starts Snow. User switches out.",
898898

899-
// TODO needs to be implemented
900-
activate: " [POKEMON] is preparing to tell a chillingly bad joke!",
899+
prepare: " [POKEMON] is preparing to tell a chillingly bad joke!",
901900
},
902901
chipaway: {
903902
name: "Chip Away",

0 commit comments

Comments
 (0)