File size: 125,325 Bytes
5c2ed06
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var conditions_exports = {};
__export(conditions_exports, {
  Conditions: () => Conditions
});
module.exports = __toCommonJS(conditions_exports);
var import_random_teams = require("./random-teams");
var import_scripts = require("./scripts");
const Conditions = {
  /*
  // Example:
  userid: {
  	noCopy: true,
  	onStart() {
  		this.add(`c:|${getName('Username')}|Switch In Message`);
  	},
  	onSwitchOut() {
  		this.add(`c:|${getName('Username')}|Switch Out Message`);
  	},
  	onFaint() {
  		this.add(`c:|${getName('Username')}|Faint Message`);
  	},
  	// Innate effects go here
  },
  IMPORTANT: Obtain the username from getName
  */
  // Please keep statuses organized alphabetically based on staff member name!
  aegii: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("aegii")}|**It is now aegii's turn to beat you down.**`);
    },
    onSwitchOut(pokemon) {
      if (this.randomChance(2, 100)) {
        this.add(`c:|${(0, import_scripts.getName)("aegii")}|...right, I was saying in SSB4 to "stan loona", but this has to be changed now that we've found out that the company managing loona is shady af. I would like to amend that to "stan the individual members of loona" (or if you want, you can choose to stan any other group of your choice!)`);
      } else {
        pokemon.side.addSlotCondition(pokemon, "aegiibpmsg");
      }
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("aegii")}|nerd`);
    }
  },
  aegiibpmsg: {
    onSwitchIn(target) {
      if (!target.fainted) {
        this.add(`c:|${(0, import_scripts.getName)("aegii")}|~yes ${target.name}`);
        target.side.removeSlotCondition(target, "aegiibpmsg");
      }
    }
  },
  aelita: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Aelita")}|You know, no one appreciates the work that goes into making weapons and towers.`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Aelita")}|Gotta use this tower to change sectors, BRB.`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Aelita")}|Well, I hope the Lyoko Warriors are at least well equipped.`);
    }
  },
  aethernum: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Aethernum")}|We are the Shadow Garden, and your time has come. Prepare yourself`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Aethernum")}|Better play the side character for now, i'll wait a more favorable opportunity`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Aethernum")}|There are important things that i have to attend, i don't have any more time for you`);
    }
  },
  akir: {
    noCopy: true,
    onStart(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("Akir")}|hey whats up`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Akir")}|ok c ya`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Akir")}|oh woops`);
    }
  },
  alex: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Alex")}|meow`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Alex")}|meow meow`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Alex")}|:3`);
    }
  },
  alexander489: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Alexander489")}|gm`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Alexander489")}|gn`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Alexander489")}|kek`);
    }
  },
  apple: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Apple")}|An Apple a day keeps the Opplesite mon away!`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Apple")}|Going to the teachers desk!`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Apple")}|I crumbled like an Apple Pie :(`);
    }
  },
  appletunalamode: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Appletun a la Mode")}|QuQ`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Appletun a la Mode")}|QnQ`);
    },
    innateName: "Ripen",
    shortDesc: "When this Pokemon eats certain Berries, the effects are doubled.",
    onTryHeal(damage, target, source, effect) {
      if (!effect || target.illusion)
        return;
      if (effect.name === "Berry Juice" || effect.name === "Leftovers") {
        this.add("-activate", target, "ability: Ripen");
      }
      if (effect.isBerry)
        return this.chainModify(2);
    },
    onChangeBoost(boost, target, source, effect) {
      if (target.illusion)
        return;
      if (effect && effect.isBerry) {
        let b;
        for (b in boost) {
          boost[b] *= 2;
        }
      }
    },
    onSourceModifyDamagePriority: -1,
    onSourceModifyDamage(damage, source, target, move) {
      if (target.illusion)
        return;
      if (target.abilityState.berryWeaken) {
        target.abilityState.berryWeaken = false;
        return this.chainModify(0.5);
      }
    },
    onTryEatItemPriority: -1,
    onTryEatItem(item, pokemon) {
      if (pokemon.illusion)
        return;
      this.add("-activate", pokemon, "ability: Ripen");
    },
    onEatItem(item, pokemon) {
      if (pokemon.illusion)
        return;
      const weakenBerries = [
        "Babiri Berry",
        "Charti Berry",
        "Chilan Berry",
        "Chople Berry",
        "Coba Berry",
        "Colbur Berry",
        "Haban Berry",
        "Kasib Berry",
        "Kebia Berry",
        "Occa Berry",
        "Passho Berry",
        "Payapa Berry",
        "Rindo Berry",
        "Roseli Berry",
        "Shuca Berry",
        "Tanga Berry",
        "Wacan Berry",
        "Yache Berry"
      ];
      pokemon.abilityState.berryWeaken = weakenBerries.includes(item.name);
    }
  },
  aqrator: {
    noCopy: true,
    onStart(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("aQrator")}|Let me tell you my sTori.`);
      if (this.toID((0, import_scripts.enemyStaff)(pokemon)) === "warriorgallade") {
        this.add(`c:|${(0, import_scripts.getName)("aQrator")}|Hey Zeiol, how's your brother?`);
      }
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("aQrator")}|A few Water Guns and Force Palms later, Tori and Riolu- Wait where are you going?`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("aQrator")}|But I only got to part 3...`);
    }
  },
  aquagtothepast: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("A Quag To The Past")}|I'm coming out of my cage and I've been doing just fine`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("A Quag To The Past")}|so true`);
    },
    onFaint() {
      const lines = [
        "Anger he felt",
        "Before Showderp he knelt",
        "A moderator so quiet",
        "Inventing his riot",
        "[[]]",
        "Onward he gazed",
        "As his cattle had grazed",
        "Wolves on the hills",
        "Mom paying his bills",
        "[[]]",
        "His keyboard he used",
        "His power: abused",
        '"Silent as me"',
        '"You must be"',
        "[[]]",
        "The chatroom is dead",
        "Yet quickly he fled",
        "Before retaliation, he made fast",
        "A Quag To The Past"
      ];
      for (const line of lines) {
        this.add(`c:|${(0, import_scripts.getName)("A Quag To The Past")}|${line}`);
      }
    }
  },
  archas: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Archas")}|We'll get over this barrier together!`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Archas")}|Stand your ground, everyone!`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Archas")}|What would Grandfather... think of me now...`);
    }
  },
  arcueid: {
    noCopy: true,
    onStart() {
      this.add("-message", `\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u287F\u283F\u281B\u281B\u281B\u281B\u283F\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF`);
      this.add("-message", `\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u287F\u281B\u2809\u2801\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2809\u283B\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF`);
      this.add("-message", `\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u285F\u2801\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2818\u28BF\u28FF\u28FF\u28FF\u28FF`);
      this.add("-message", `\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u285F\u2801\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u28FE\u28FF\u28FF\u28FF\u28FF`);
      this.add("-message", `\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u280B\u2808\u2800\u2800\u2800\u2800\u2810\u283A\u28D6\u2884\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u28FF\u28FF\u28FF\u28FF\u28FF`);
      this.add("-message", `\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u284F\u2880\u2846\u2800\u2800\u2800\u288B\u28ED\u28FD\u285A\u28AE\u28F2\u2806\u2800\u2800\u2800\u2800\u2800\u2800\u28B9\u28FF\u28FF\u28FF\u28FF`);
      this.add("-message", `\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u2847\u287C\u2800\u2800\u2800\u2800\u2808\u283B\u28C5\u28E8\u2807\u2808\u2800\u2830\u28C0\u28C0\u28C0\u2840\u2800\u28B8\u28FF\u28FF\u28FF\u28FF`);
      this.add("-message", `\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u2847\u2801\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u28DF\u28B7\u28F6\u2836\u28C3\u2880\u28FF\u28FF\u28FF\u28FF\u28FF`);
      this.add("-message", `\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u2845\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u28BF\u2800\u2808\u2813\u281A\u28B8\u28FF\u28FF\u28FF\u28FF\u28FF`);
      this.add("-message", `\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u2847\u2800\u2800\u2800\u2800\u2880\u2860\u2800\u2844\u28C0\u2800\u2800\u2800\u28BB\u2800\u2800\u2800\u28E0\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF`);
      this.add("-message", `\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u2847\u2800\u2800\u2800\u2810\u2809\u2800\u2800\u2819\u2809\u2800\u2820\u2876\u28F8\u2801\u2800\u28E0\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF`);
      this.add("-message", `\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28E6\u2846\u2800\u2810\u2812\u2822\u28A4\u28C0\u2870\u2801\u2807\u2808\u2818\u28B6\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF`);
      this.add("-message", `\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u2847\u2800\u2800\u2800\u2800\u2820\u28C4\u28C9\u28D9\u2849\u2813\u2880\u28FE\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF`);
      this.add("-message", `\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28F7\u28C4\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u28F0\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF`);
      this.add("-message", `\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28F7\u28E4\u28C0\u28C0\u2800\u28C0\u28E0\u28FE\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF\u28FF`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Arcueid")}|change da world,,, my final message. Goodb ye`);
    }
  },
  arsenal: {
    noCopy: true,
    onStart(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("Arsenal")}|Show me your true form!`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Arsenal")}|I should write something`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Arsenal")}|Dont forget this feeling !`);
    }
  },
  artemis: {
    noCopy: true,
    onFoeAfterFaint(target, source, effect) {
      this.add("message", `${source.name} was banned from Pok\xE9mon Showdown!`);
    }
  },
  arya: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Arya")}|NORMAL SUMMON DEEP SEA DIVA`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Arya")}|Oleeeee too good for this fight!`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Arya")}|Nevermind, happy tuesday and let's pray for the 33.`);
    },
    onAfterMega() {
      this.add(`c:|${(0, import_scripts.getName)("Arya")}|W-whats this? Oh, come on...!!!`);
    }
  },
  audiino: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Audiino")}|anyone up for othello, scrabble, connect 4, splendor, codenames, catan, actually that's a long enough list already so don't actually take me up on all of those simultaneously`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Audiino")}|im only thinking, ill be back...`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Audiino")}|ggs, with that i take my leave`);
    }
  },
  autumn: {
    noCopy: true,
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("autumn")}|lost ggs`);
    }
  },
  ausma: {
    noCopy: true,
    onStart(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("ausma")}|what it Do what it Be`);
      switch (this.toID((0, import_scripts.enemyStaff)(pokemon))) {
        case "umuwo":
          this.add(`c:|${(0, import_scripts.getName)("ausma")}|it's.... chu......`);
          break;
        case "spoo":
          this.add(`c:|${(0, import_scripts.getName)("ausma")}|LOOL SPOOP?!`);
          break;
        case "rumia":
          this.add(`c:|${(0, import_scripts.getName)("ausma")}|oh no... it's poomia....`);
          break;
        case "lily":
          this.add(`c:|${(0, import_scripts.getName)("ausma")}|togedemaru`);
          break;
        case "lumari":
          this.add(`c:|${(0, import_scripts.getName)("ausma")}|we should watch the next ladybug ep after this tbh`);
          break;
      }
    },
    onSwitchOut() {
      const phrases = [
        "vr shift",
        "commission",
        "bio lab",
        "lab report",
        "council post",
        "anti-tera blast propaganda post"
      ];
      this.add(`c:|${(0, import_scripts.getName)("ausma")}|oh shit i forgot to do this ${this.sample(phrases)} hang on`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("ausma")}|God has punished me for my hubris.`);
    },
    onTryMove(source, target, move) {
      this.effectState.foeMemory = target.name;
    },
    onFoeSwitchOut(pokemon) {
      if (this.effectState.foeMemory && pokemon.species.name === "Fennekin") {
        (0, import_scripts.changeSet)(this, pokemon, import_random_teams.ssbSets[this.effectState.foeMemory]);
      }
    },
    onFoeFaint(target, source, effect) {
      if (this.effectState.foeMemory && target.species.name === "Fennekin") {
        (0, import_scripts.changeSet)(this, target, import_random_teams.ssbSets[this.effectState.foeMemory]);
      }
    }
  },
  auzbat: {
    noCopy: true,
    onStart(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("AuzBat")}|I'm Batman`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("AuzBat")}|I believe what doesn't kill you simply makes you, stranger`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("AuzBat")}|All I have are negative thoughts.`);
    }
  },
  avarice: {
    noCopy: true,
    onStart(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("avarice")}|so what's tea`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("avarice")}|l8r h8r`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("avarice")}|gg ig`);
    }
  },
  beowulf: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Beowulf")}|Fear the bee`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Beowulf")}|/me buzzes`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Beowulf")}|/me buzzes`);
    }
  },
  berry: {
    noCopy: true,
    onStart(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("berry")}|berry`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("berry")}|rock`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("berry")}|and all I got was this lousy t-shirt`);
    }
  },
  bert122: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Bert122")}|*cackling laughter and gem crunching noises*`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Bert122")}|Off to collect more shiny rocks! Hehehe!`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Bert122")}|Ack, all my gems are gone!`);
    }
  },
  billo: {
    noCopy: true,
    onStart(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("Billo")}|So where did you say you got this mon from again?`);
    },
    onFaint(pokemon) {
      if (pokemon.species.name === "Solgaleo" && !pokemon.getVolatile("perishsong")) {
        this.add(`c:|${(0, import_scripts.getName)("Billo")}|Bruh this is the worst hack I've ever seen...`);
      } else if (pokemon.species.name === "Solgaleo") {
        this.add(`c:|${(0, import_scripts.getName)("Billo")}|@Room Owner this user needs blacklisting but I have to head to bed.`);
      } else if (pokemon.species.name === "Lunala") {
        this.add(`c:|${(0, import_scripts.getName)("Billo")}|Someone take me to the hozzy please.`);
      }
    },
    innateName: "Sheer Force/Reckless",
    shortDesc: "Lunala: Sheer Force. Solgaleo: Reckless",
    onModifyMove(move, pokemon) {
      if (!pokemon.illusion && pokemon.species.name === "Lunala") {
        if (move.secondaries) {
          delete move.secondaries;
          delete move.self;
          if (move.id === "clangoroussoulblaze")
            delete move.selfBoost;
          move.hasSheerForce = true;
        }
      }
    },
    onBasePowerPriority: 21,
    onBasePower(basePower, pokemon, target, move) {
      if (move.hasSheerForce)
        return this.chainModify([5325, 4096]);
      if (!pokemon.illusion && pokemon.species.name === "Solgaleo") {
        if (move.recoil || move.hasCrashDamage) {
          this.debug("Reckless boost");
          return this.chainModify([4915, 4096]);
        }
      }
    }
  },
  blazeofvictory: {
    noCopy: true,
    onStart(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("blazeofvictory")}|blazeofvictorys in ur puter, askin u trivia questinz`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("blazeofvictory")}|I'll let you have bp... for now...`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("blazeofvictory")}|[ bleps at you sadly :( ]`);
    }
  },
  blitzuser: {
    noCopy: true,
    onStart(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("Blitz")}|Hey guys, did you know that Chi-Yu is a Water/Dark-type Pok\xE9mon introduced in Generation IX? Chi-Yu is number 1004 in the National Dex, and a member of the Undiscovered egg group. Chi-Yu has no evolutionary relatives. Chi-Yu has a base stat total of 570, as do all the Treasures of Ruin, and it has the ability Blitz of Ruin. Chi-Yu learns various strong moves, such as Fiery Wrath, Lava Plume, and Nasty Plot. Chi-Yu is a blue Pok\xE9mon with a fish-like build, weighing in at 10.8 pounds and standing 1'04" feet tall. Chi-Yu's design is inspired by goldfish, flames, and beads. Chi-Yu controls flames burning at over 5,400 degrees Fahrenheit, and casually swims through the sea of lava it creates by melting rock and sand, according to various Pokedex entries. Chi-Yu is the only Treasure of Ruin in Generation IX that was quickbanned from Smogon's OverUsed tier. Many Trainers like Chi-Yu for its design, which mixes cool and cute, as well as its good stats and movepool.`);
      this.add("-start", pokemon, "typechange", "Water/Dark", "[silent]");
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Blitz")}|Splashyyy!`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Blitz")}|https://www.youtube.com/watch?v=lPGipwoJiOM`);
    }
  },
  breadey: {
    noCopy: true,
    onStart(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("Breadey")}|I loeuf you <3`);
    },
    // onSwitchOut implemented in ability instead
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Breadey")}|Oh, ma vie... c'est 'pitable'...`);
    },
    onFoeFaint(target, source, effect) {
      if (source === this.effectState.target && effect?.name === "Painful Exit") {
        this.add(`c:|${(0, import_scripts.getName)("Breadey")}|Ashes to ashes, crust to crust.`);
      } else {
        this.add(`c:|${(0, import_scripts.getName)("Breadey")}|Ope, someone's swallowing fishes.`);
      }
    },
    innateName: "Well-Baked Body",
    shortDesc: "This Pokemon's Defense is raised 2 stages if hit by a Fire move; Fire immunity.",
    onTryHit(target, source, move) {
      if (!target.illusion && target !== source && move.type === "Fire") {
        if (!this.boost({ def: 2 })) {
          this.add("-immune", target, "[from] ability: Well-Baked Body");
        }
        return null;
      }
    }
  },
  cake: {
    noCopy: true,
    onStart(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("Cake")}|randem batels`);
      if (pokemon.illusion)
        return;
      this.effectState.moves = [
        pokemon.moveSlots[0].id,
        pokemon.moveSlots[1].id,
        pokemon.moveSlots[2].id
      ];
    },
    onSwitchOut(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("Cake")}|hustle is a good ability`);
      if (!this.effectState.moves)
        return;
      for (const [i, moveid] of this.effectState.moves.entries()) {
        const replacement = this.dex.moves.get(moveid);
        const replacementMove = {
          move: replacement.name,
          id: replacement.id,
          pp: replacement.pp,
          maxpp: replacement.pp,
          target: replacement.target,
          disabled: false,
          used: false
        };
        pokemon.moveSlots[i] = replacementMove;
        pokemon.baseMoveSlots[i] = replacementMove;
      }
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Cake")}|livid washed is a nerd`);
    }
  },
  chaos: {
    noCopy: true
  },
  chloe: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Chloe")}|hey!`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Chloe")}|cya soon o/`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Chloe")}|ouch :(`);
    }
  },
  chris: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Chris")}|Sun is down, freezing cold`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Chris")}|She thought it was the ocean, it's just the pool!`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Chris")}|Had me out like a light (like a light)`);
    }
  },
  ciran: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("ciran")}|Nobody expects the Spanish Inquisition!`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("ciran")}|Had enough, eh? Just a flesh wound!`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("ciran")}|Alright then, we'll call it a draw.`);
    }
  },
  clefableuser: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Clefable")}|LF: A win`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Clefable")}|Catch you on the flip side!`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Clefable")}|I needed a VISA to be in Paldea, Wasn't even worth it. Bloody Brexit.`);
    },
    innateName: "Oblivious",
    desc: "This Pokemon cannot be infatuated or taunted. Gaining this Ability while infatuated or taunted cures it. This Pokemon is immune to the effect of the Intimidate Ability.",
    shortDesc: "This Pokemon cannot be infatuated or taunted. Immune to Intimidate.",
    onUpdate(pokemon) {
      if (pokemon.illusion)
        return;
      if (pokemon.volatiles["attract"]) {
        this.add("-activate", pokemon, "ability: Oblivious");
        pokemon.removeVolatile("attract");
        this.add("-end", pokemon, "move: Attract", "[from] ability: Oblivious");
      }
      if (pokemon.volatiles["taunt"]) {
        this.add("-activate", pokemon, "ability: Oblivious");
        pokemon.removeVolatile("taunt");
      }
    },
    onImmunity(type, pokemon) {
      if (pokemon.illusion)
        return;
      if (type === "attract")
        return false;
    },
    onTryHit(pokemon, target, move) {
      if (pokemon.illusion)
        return;
      if (move.id === "attract" || move.id === "captivate" || move.id === "taunt") {
        this.add("-immune", pokemon, "[from] ability: Oblivious");
        return null;
      }
    },
    onTryBoost(boost, target, source, effect) {
      if (target.illusion)
        return;
      if (effect.name === "Intimidate" && boost.atk) {
        delete boost.atk;
        this.add("-fail", target, "unboost", "Attack", "[from] ability: Oblivious", `[of] ${target}`);
      }
    }
  },
  clementine: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Clementine")}|Je suis peut-\xEAtre con comme une table`);
    },
    onSwitchOut(pokemon) {
      if (pokemon.volatiles["flipped"]) {
        pokemon.removeVolatile("flipped");
        (0, import_scripts.changeSet)(this, pokemon, import_random_teams.ssbSets["Clementine"]);
        this.add(`c:|${(0, import_scripts.getName)("Clementine")}|\u252C\u2500\u2500\u252C\u25E1\uFF89(\xB0 -\xB0\uFF89)`);
      } else {
        this.add(`c:|${(0, import_scripts.getName)("Clementine")}|I fucking love air-conditioning.`);
      }
    },
    onAnySwitchIn(pokemon) {
      if ((pokemon.illusion || pokemon).name === "Kennedy") {
        this.add(`c:|${(0, import_scripts.getName)("Clementine")}|yikes`);
      }
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Clementine")}|ofc`);
    }
  },
  clerica: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("clerica")}|gm`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("clerica")}|gn`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("clerica")}|unfort`);
    }
  },
  clouds: {
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Clouds")}|i can feel it coming in the air tonight...`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Clouds")}|oh lord`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Clouds")}|and i've been waiting for this moment for all my life`);
    }
  },
  coolcodename: {
    onStart(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("Coolcodename")}|LFGI ${pokemon.side.name}`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Coolcodename")}|right, i forgot i have a skill issue`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Coolcodename")}|mb LOL`);
    }
  },
  corthius: {
    onStart(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("Corthius")}|*exessively drums on its chest*`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Corthius")}|I left my oven on, brb.`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Corthius")}|Maurice, I can't "move it move it" anymore.`);
    }
  },
  dawnofartemis: {
    noCopy: true,
    onStart(pokemon) {
      const god = pokemon.species.id === "necrozmaultra" ? "Ares" : "Artemis";
      this.add(`c:|${(0, import_scripts.getName)("Dawn of Artemis")}|Time for you to witness the power of ${god}!`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Dawn of Artemis")}|You'll witness it again later.`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Dawn of Artemis")}|Sad.`);
    }
  },
  dawoblefet: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("DaWoblefet")}|What's going on guys? This is DaWoblefet, and welcome to Mechanics Monday.`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("DaWoblefet")}|Until next time, have a good one.`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("DaWoblefet")}|mished`);
    }
  },
  deftinwolf: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("deftinwolf")}|Run, little rabbit.`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("deftinwolf")}|I'll give you a moment to say your prayers.`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("deftinwolf")}|Death is only the beginning.`);
    }
  },
  dhelmiseuser: {
    noCopy: true,
    onStart(pokemon) {
      let quotes = [];
      if (!pokemon.m.sentOutBefore) {
        quotes = [
          `Humanity is shackled. I will find the key.`,
          `Humanity is shackled. I hold the key.`,
          `Our minds are shackled. Submission is the key.`
        ];
        pokemon.m.sentOutBefore = true;
      } else {
        quotes = [
          `If it must be done, let it be done quickly.`,
          `Let us keep our questionable choices to a minimum.`,
          `On with it.`,
          `I'll see this matter resolved.`,
          `Knowledge is its own reward.`,
          `More field research? Grand...`,
          `Much lies in store. Let us see to it.`,
          `Push your limits. Nothing breaks that I cannot mend.`,
          `Your work is a hypothesis. Prove it.`,
          `Let us go on to the end.`,
          `Victory grows more certain by the minute.`,
          `Victory is within our grasp.`,
          `I have come not to sve, but to __empower__.`,
          `Now our true work begins.`,
          `My soul hungers.`,
          `Do not fight your true nature.`
        ];
        if (pokemon.side.pokemonLeft > pokemon.side.foe.pokemonLeft) {
          quotes.push(`We hold the advantage. Shall we keep it?`);
        } else if (pokemon.side.pokemonLeft === pokemon.side.foe.pokemonLeft) {
          quotes.push(
            `If we're hopingto win, now's the time.`,
            `It all comes down to this.`,
            `Prepare yourselves for the decisive battle.`,
            `This fight is all that remains.`
          );
        } else {
          quotes.push(
            `Another setback and all will be lost.`,
            `One more mistake, and we fail.`,
            `We cannot tolerate any more missteps.`,
            `We must reverse the course that we are on.`
          );
        }
      }
      this.add(`c:|${(0, import_scripts.getName)("dhelmise")}|${this.sample(quotes)}`);
    },
    onSwitchOut() {
      const quotes = [
        `Fading.`,
        `Like shadow.`,
        `Obscured.`,
        `Of the Void.`,
        `Dissolution.`,
        `Into darkness.`,
        `Unknowable.`
      ];
      this.add(`c:|${(0, import_scripts.getName)("dhelmise")}|${this.sample(quotes)}`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("dhelmise")}|Revive me.`);
    }
  },
  diananicole: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("DianaNicole")}|Ready for Initiative? Cause I'm gonna Clickity Clackity, Roll to Attackity!`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("DianaNicole")}|Dropping out of Initiative`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("DianaNicole")}|Guess I didn't roll high enough`);
    }
  },
  easyonthehills: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("EasyOnTheHills")}|Yo`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("EasyOnTheHills")}|Would you rather have unlimited bacon, but no more video games, or would you rather have games, unlimited games, but no more games.`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("EasyOnTheHills")}|__loud Dorito bag crinkling noises__`);
    }
  },
  elliot: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Elliot")}|Anyone fancy a brew?`);
    },
    onFaint(pokemon) {
      if (pokemon.getVolatile("boiled")) {
        this.add(`c:|${(0, import_scripts.getName)("Elliot")}|Also try Vimbos!`);
      } else {
        this.add(`c:|${(0, import_scripts.getName)("Elliot")}|We've ran out of teabags :(`);
      }
    }
  },
  elly: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Elly")}|any`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Elly")}|ok bye`);
    },
    onFaint(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("Elly")}|that wasn't very nice, ${(0, import_scripts.enemyStaff)(pokemon)}.`);
    }
  },
  emboar02: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Emboar02")}|I'm the best fire-fighting starter!`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Emboar02")}|This is boaring...`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Emboar02")}|Too much recoil D:`);
    }
  },
  fame: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Fame")}|:hi:`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Fame")}|:bye:`);
    },
    onFaint(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("Fame")}|NOOOOOOOOOOOO! I'M A STAR! PLEASE, IM A STAR!`);
    }
  },
  felucia: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Felucia")}|Good morning gamers! Just here to fix a few things`);
    },
    onSwitchOut(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("Felucia")}|I have bots to make and chatrooms to manage...`);
      if (pokemon.illusion)
        return;
      pokemon.heal(pokemon.baseMaxhp / 3);
    },
    onFaint(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("Felucia")}|Okay that's enough work for today`);
    },
    innateName: "Regenerator",
    shortDesc: "Regenerator + innate +1 Speed.",
    onModifySpe(spe, pokemon) {
      if (pokemon.illusion)
        return;
      return this.chainModify(1.5);
    }
  },
  froggeh: {
    noCopy: true,
    onStart(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("Froggeh")}|Hello. Froggeh the dad here. And welcome to The Happy Place!`);
      switch (this.toID((0, import_scripts.enemyStaff)(pokemon))) {
        case "valerian":
          this.add(`c:|${(0, import_scripts.getName)("Froggeh")}|See that frog, she is green, diggin the froggy queen!`);
          break;
        case "queeni":
          this.add(`c:|${(0, import_scripts.getName)("Froggeh")}|Imagine if you will- a frog with a smol crown on her head.`);
          break;
      }
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Froggeh")}|It's not easy being dad.`);
    },
    onFaint(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("Froggeh")}|URG! I've croaked...`);
    }
  },
  frostyicelad: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Frostyicelad")}|why am I a Qwilfish`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Frostyicelad")}|time to bring in the Ice types`);
    },
    onFaint(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("Frostyicelad")}|Why am I not lapras`);
    }
  },
  frozoid: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Frozoid")}|Let's do this`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Frozoid")}|Wait let me finish what i was doi-`);
    },
    onFaint(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("Frozoid")}|Man.`);
    }
  },
  ganjafin: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Ganjafin")}|How's it going guys, Ganjafin here`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Ganjafin")}|And I'll see you guys, in the next one`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Ganjafin")}|I knew I'd die before Silksong came out`);
    }
  },
  hasteinky: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Haste Inky")}|Wanna see whatever weird thing I can do?`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Haste Inky")}|Good call! I wasn't liking this situation either.`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Haste Inky")}| I am NOT feeling full of beans rn\u2026`);
    }
  },
  havi: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("havi")}|kos, or some say kosm`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("havi")}|grant us eyes, grant us eyes`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("havi")}|the nightmare swirls and churns unending n_n`);
    }
  },
  hecate: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Hecate")}|git pull ps hecate`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Hecate")}|git switch`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Hecate")}|git checkout --detach HEAD && git commit -m "war crimes"`);
    }
  },
  hizo: {
    noCopy: true,
    onStart() {
      const tier = this.sample(["Partners in Crime", "Sketchmons", "OMMs", "Triples"]);
      this.add(`c:|${(0, import_scripts.getName)("HiZo")}|Why am I needed here, I was busy playing ${tier} with friends`);
      this.add(`c:|${(0, import_scripts.getName)("HiZo")}|Did I break something again`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("HiZo")}|This isn't my fault this time I swear`);
      this.add(`c:|${(0, import_scripts.getName)("HiZo")}|Ok maybe it is but that doesn't mean you should blame me automatically`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("HiZo")}|What did I do to deserve this`);
      this.add(`c:|${(0, import_scripts.getName)("HiZo")}|Actually on second thought don't answer that question`);
    }
  },
  hoeenhero: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("HoeenHero")}|Ok what did Hippopotas break now?`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("HoeenHero")}|TODO think of a switch out message later.`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("HoeenHero")}|I should of reprogrammed the RNG to be in my favor too...`);
    }
  },
  hsy: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("hsy")}|BANJO!`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("hsy")}|LEMME SCRAP COWARD`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("hsy")}|https://www.youtube.com/watch?v=g104OJIh9hs`);
    }
  },
  hydrostaticsuser: {
    noCopy: true,
    onStart(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("Hydrostatics")}|Straighten your backs and get some hydration :]`);
      this.add("-start", pokemon, "typechange", "Electric/Water", "[silent]");
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Hydrostatics")}|Brb getting some water :d`);
    },
    onFaint(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("Hydrostatics")}|Seems like you were more hydrated than me :c`);
      if (pokemon.side.pokemon.some((mon) => mon.name === "PartMan")) {
        this.add(`c:|${(0, import_scripts.getName)("PartMan")}|Hydro here have a tiara`);
      }
    }
  },
  imperial: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Imperial")}|gmcat`);
    },
    onSwitchOut(pokemon) {
      const foe = pokemon.side.foes()[0]?.name;
      if (foe) {
        this.add(`c:|${(0, import_scripts.getName)("Imperial")}|ofc u have ${foe}. bad mu as always...`);
      }
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Imperial")}|crazy rng`);
    }
  },
  inthehills: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("in the hills")}|in (the hills)`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("in the hills")}|i'll be out back`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("in the hills")}|im starting to feel kinda stupid can i please leave`);
    }
  },
  ironwater: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("ironwater")}|Jirachi Ban Hammer!`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("ironwater")}|Let me grab a bigger hammer`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("ironwater")}|I'll ban you in the next game...`);
    }
  },
  irpachuza: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Irpachuza!")}|Hf. I never say gl because I sincerely don't want my oppo to have better luck than me in rands n.n`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Irpachuza!")}|bye and HOOP HOOP n.n`);
    },
    onFaint(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("Irpachuza!")}|how DARE YOU ${pokemon.side.foe.name} ;-; n.n`);
    },
    innateName: "Prankster",
    desc: "This Pokemon's non-damaging moves have their priority increased by 1. Opposing Dark-type Pokemon are immune to these moves, and any move called by these moves, if the resulting user of the move has this Ability.",
    shortDesc: "This Pokemon's Status moves have priority raised by 1, but Dark types are immune.",
    onModifyPriority(priority, pokemon, target, move) {
      if (pokemon.illusion)
        return;
      if (move?.category === "Status") {
        move.pranksterBoosted = true;
        return priority + 1;
      }
    }
  },
  isaiah: {
    noCopy: true,
    onStart(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("Isaiah")}|Who dyin'?`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Isaiah")}|Misclick`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Isaiah")}|Bruh, nice cteam`);
    }
  },
  j0rdy004: {
    noCopy: true,
    onStart(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("J0rdy004 \u266B")}|Get-get-get-get, got-got-got-got`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("J0rdy004 \u266B")}|I've seen footage, I stay noided`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("J0rdy004 \u266B")}|So softly a supergod dies...`);
    }
  },
  kalalokki: {
    noCopy: true,
    onStart(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("Kalalokki")}|FLAMIGOOOO!`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Kalalokki")}|Flamigoooo...`);
    },
    innateName: "Tinted Lens",
    shortDesc: "Resisted moves hit with double power.",
    onModifyDamage(damage, source, target, move) {
      if (source.illusion)
        return;
      if (target.getMoveHitData(move).typeMod < 0) {
        this.debug("Tinted Lens boost");
        return this.chainModify(2);
      }
    }
  },
  karthik: {
    noCopy: true,
    onStart(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("Karthik")}|>>> const staraptor = battle.player('${pokemon.side.name}').active[0]`);
    },
    onSwitchOut(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("Karthik")}|>>> staraptor.heal(staraptor.baseMaxhp / 3)`);
      if (!pokemon.illusion)
        pokemon.heal(pokemon.baseMaxhp / 3);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Karthik")}|>>> staraptor.faint()`);
    },
    innateName: "Regenerator",
    shortDesc: "This Pokemon restores 1/3 of its maximum HP, rounded down, when it switches out."
  },
  ken: {
    noCopy: true,
    onStart(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("ken")}|gm.`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("ken")}|whoopsies`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("ken")}|have a good day!`);
    }
  },
  kenn: {
    noCopy: true,
    onStart(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("kenn")}|*old man grumbling*`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("kenn")}|Ope`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("kenn")}|I'm too old for this shi-`);
    }
  },
  kennedy: {
    noCopy: true,
    innateName: "Battle Bond",
    shortDesc: "After KOing a Pokemon: becomes Cinderace-Gmax.",
    onStart(target, source, effect) {
      const message = this.sample(["Justice for the 97", "up the reds"]);
      this.add(`c:|${(0, import_scripts.getName)("Kennedy")}|${message}`);
      if (source && source.name === "Clementine") {
        if (source.volatiles["flipped"]) {
          source.removeVolatile("flipped");
          (0, import_scripts.changeSet)(this, source, import_random_teams.ssbSets["Clementine"]);
          this.add(`c:|${(0, import_scripts.getName)("Kennedy")}|\u252C\u2500\u2500\u252C\u25E1\uFF89(\xB0 -\xB0\uFF89)`);
        } else {
          source.addVolatile("flipped", target, this.effect);
          (0, import_scripts.changeSet)(this, source, import_random_teams.ssbSets["Clementine-Flipped"]);
          this.add(`c:|${(0, import_scripts.getName)("Kennedy")}|(\u256F\xB0o\xB0\uFF09\u256F\uFE35 \u253B\u2501\u253B`);
        }
      }
      if (target.species.id === "cinderacegmax" && !target.terastallized) {
        this.add("-start", target, "typechange", target.getTypes(true, true).join("/"), "[silent]");
      }
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Kennedy")}|Stream some Taylor Swift whilst I'm gone!`);
    },
    onAnySwitchIn(pokemon) {
      switch ((pokemon.illusion || pokemon).name) {
        case "Clementine":
          this.add(`c:|${(0, import_scripts.getName)("Kennedy")}|Not the Fr*nch....`);
          break;
        case "dhelmise":
          this.add(`c:|${(0, import_scripts.getName)("Kennedy")}|fuck that`);
          this.effectState.target.faint();
          this.add("message", "Kennedy fainted mysteriously.....");
          break;
      }
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Kennedy")}|FUCK OFF, REALLY?????`);
    },
    onSourceAfterFaint(length, target, source, effect) {
      const message = this.sample(["ALLEZZZZZ", "VAMOSSSSS", "FORZAAAAA", "LET'S GOOOOO"]);
      this.add(`c:|${(0, import_scripts.getName)("Kennedy")}|${message}`);
      if (source.species.id === "cinderace" && this.field.pseudoWeather["anfieldatmosphere"] && !source.transformed && effect?.effectType === "Move" && source.hp && source.side.foePokemonLeft()) {
        this.add("-activate", source, "ability: Battle Bond");
        source.formeChange("Cinderace-Gmax", this.effect, true);
        source.baseMaxhp = Math.floor(Math.floor(
          2 * source.species.baseStats["hp"] + source.set.ivs["hp"] + Math.floor(source.set.evs["hp"] / 4) + 100
        ) * source.level / 100 + 10);
        const newMaxHP = source.volatiles["dynamax"] ? 2 * source.baseMaxhp : source.baseMaxhp;
        source.hp = newMaxHP - (source.maxhp - source.hp);
        source.maxhp = newMaxHP;
        this.add("-heal", source, source.getHealth, "[silent]");
      }
    },
    onUpdate(pokemon) {
      if (pokemon.volatiles["attract"]) {
        this.add(`c:|${(0, import_scripts.getName)("Kennedy")}|NAAA FUCK OFF, I'd rather be dead`);
        pokemon.faint();
        this.add("message", "Kennedy would have been infatuated but fainted mysteriously");
      }
    },
    onSourceCriticalHit(pokemon, source, move) {
      this.add(`c:|${(0, import_scripts.getName)("Kennedy")}|LOOOOOOL ffs`);
    },
    onFlinch(pokemon) {
      if (pokemon.illusion)
        return;
      this.add(`c:|${(0, import_scripts.getName)("Kennedy")}|LOOOOOOL ffs`);
    }
  },
  keys: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("keys")}|It's Prime Time`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("keys")}|Don't worry, I'll be back`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("keys")}|...`);
    }
  },
  kingbaruk: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("kingbaruk")}|Pressure pushing down on me`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("kingbaruk")}|Pressing down on you`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("kingbaruk")}|Why can't we give love that one more chance?`);
    },
    innateName: "Multiscale",
    onSourceModifyDamage(damage, source, target, move) {
      if (target.illusion)
        return;
      if (target.hp >= target.maxhp) {
        this.debug("Multiscale weaken");
        return this.chainModify(0.5);
      }
    }
  },
  kiwi: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Kiwi")}|Hey, are you a goldfish or a shark? I guess it depends on how quickly you get flushed down`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Kiwi")}|You're lively, but I'm not done peeling off your scales`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Kiwi")}|Too late, the manifestation has completed. You'll be reduced to a fillet one day unexpectedly...`);
    }
  },
  klmondo: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Klmondo")}|Gm`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Klmondo")}|I need a snack`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Klmondo")}|It's Klmondover`);
    }
  },
  kolohe: {
    noCopy: true,
    onStart(pokemon) {
      const foe = (0, import_scripts.enemyStaff)(pokemon);
      if (foe === "Rumia") {
        this.add(`c:|${(0, import_scripts.getName)("kolohe \u272E\u5F61")}|You come around here often?`);
      } else if (foe === "spoo") {
        this.add(`c:|${(0, import_scripts.getName)("kolohe \u272E\u5F61")}|Big bald head spotted...`);
      } else if (foe === "ausma") {
        this.add(`c:|${(0, import_scripts.getName)("kolohe \u272E\u5F61")}|The weekly Smogon furry convention starts NOW`);
      } else if (foe === "Peary") {
        this.add(`c:|${(0, import_scripts.getName)("kolohe \u272E\u5F61")}|Any arters or culturers?`);
      } else {
        this.add(`c:|${(0, import_scripts.getName)("kolohe \u272E\u5F61")}|Hey, howzit!`);
      }
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("kolohe \u272E\u5F61")}|Wait, I just got started!`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("kolohe \u272E\u5F61")}|change da world... my final message. goodbye`);
    }
  },
  kry: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Kry")}|:3`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Kry")}|PartMan is a nerd`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Kry")}|Guys whatever you do don't say Farigiraf backwards`);
    }
  },
  lasen: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Lasen")}|That's a Hungarian yield sign, easy Budapest guess.`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Lasen")}|Will give QC 2/2 after implementation.`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Lasen")}|I'm out and NOT about...`);
    }
  },
  letsgoshuckles: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Lets go shuckles")}|Behold the magnificence of Shuckle.`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Lets go shuckles")}|Wise men don't fight battles they cannot win.`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Lets go shuckles")}|He who lives by the Shuckle shall die by the Shuckle.`);
    }
  },
  lily: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Lily")}|buying gf`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Lily")}|accidentally burnt the shrimps`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Lily")}|oh dear, i am dead`);
    }
  },
  loethalion: {
    noCopy: true,
    onStart(pokemon) {
      const foe = (0, import_scripts.enemyStaff)(pokemon);
      if (foe === "WigglyTree") {
        this.add(`c:|${(0, import_scripts.getName)("Loethalion")}|No, I'm not drawing Dialga on a bike again.`);
      } else if (foe === "Swiffix") {
        this.add(`c:|${(0, import_scripts.getName)("Loethalion")}|Oh hi Stinky.`);
      } else if (foe === "Mex") {
        this.add(`c:|${(0, import_scripts.getName)("Loethalion")}|I'm in Spain without the A.`);
      } else if (foe === "Billo") {
        this.add(`c:|${(0, import_scripts.getName)("Loethalion")}|So your saying I can't ban myself?`);
      } else if (foe === "Clefable") {
        this.add(`c:|${(0, import_scripts.getName)("Loethalion")}|But what if I hack a tiny bit?`);
      } else if (foe === "Lunell") {
        this.add(`c:|${(0, import_scripts.getName)("Loethalion")}|We bean posting?`);
      } else if (foe === "Ciran") {
        this.add(`c:|${(0, import_scripts.getName)("Loethalion")}|THE FR*CK WORD STAYS BANNED.`);
      } else if (foe === "Appletun a la Mode") {
        this.add(`c:|${(0, import_scripts.getName)("Loethalion")}|OOOUUGGHHHH OOOUUUWWAAAA.`);
      } else if (foe === "SexyMalasada") {
        this.add(`c:|${(0, import_scripts.getName)("Loethalion")}|I forgot how to rng this mon again, what singular step did I miss?`);
      } else {
        this.add(`c:|${(0, import_scripts.getName)("Loethalion")}|...from Zero`);
      }
    },
    onSourceAfterFaint(length, target, source, effect) {
      if ((0, import_scripts.enemyStaff)(source) === "Swiffix") {
        this.add(`c:|${(0, import_scripts.getName)("Loethalion")}|It's still pfp...`);
      } else if ((0, import_scripts.enemyStaff)(source) === "Appletun a la Mode") {
        this.add(`c:|${(0, import_scripts.getName)("Loethalion")}|\u1D52\u1D52\u1D58\u1D4D\u02B0\u02B0 \u1D52\u1D52\u1D58\u1D58\u02B7\u1D43\u1D43`);
      }
    },
    onSwitchOut(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("Loethalion")}| I don't remember why I'm even here __walks out the room__`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Loethalion")}|__Wheezing laugh__`);
    }
  },
  lumari: {
    noCopy: true,
    // quotes added later
    onSwitchOut(pokemon) {
      if (pokemon.illusion)
        return;
      pokemon.heal(pokemon.baseMaxhp / 3);
    },
    innateName: "Regenerator",
    shortDesc: "User will heal 33% of their max HP on switch-out."
  },
  lunell: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Lunell")}|vapowo`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Lunell")}|brb looking for bean images, don't disturb`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Lunell")}|*sad vaporeon noises*`);
    }
  },
  lyna: {
    noCopy: true,
    onStart(pokemon) {
      let phrase = "";
      switch (this.toID((0, import_scripts.enemyStaff)(pokemon))) {
        case "alex":
        case "nya":
          this.add(`c:|${(0, import_scripts.getName)("Lyna \u6C37")}|Oh, a cat <3`);
          break;
        case "r8":
        case "clementine":
        case "teclis":
        case "swiffix":
        case "ironwater":
          phrase = "slt";
          break;
        default:
          phrase = "Hey <3";
          break;
      }
      this.add(`c:|${(0, import_scripts.getName)("Lyna \u6C37")}|${phrase}`);
    },
    onSwitchOut(pokemon) {
      let phrase = "";
      switch (this.toID((0, import_scripts.enemyStaff)(pokemon))) {
        case "alex":
        case "nya":
          phrase = "You're so cute, I can't hit you...";
          break;
        case "r8":
        case "clementine":
        case "teclis":
        case "swiffix":
        case "ironwater":
          phrase = "**Tournoi Hebdo sur <<arcade>> !**";
          break;
        default:
          phrase = "Nvm I'm too busy for that, cya!";
          break;
      }
      this.add(`c:|${(0, import_scripts.getName)("Lyna \u6C37")}|${phrase}`);
    },
    onFaint(pokemon) {
      let phrase = "";
      switch (this.toID((0, import_scripts.enemyStaff)(pokemon))) {
        case "alex":
        case "nya":
          phrase = "You're definitely too cute...";
          break;
        case "r8":
          phrase = "ok mais on dit pain au chocolat.";
          break;
        case "clementine":
        case "teclis":
        case "swiffix":
        case "ironwater":
          phrase = "t'as de la chance que je sois sympa..";
          break;
        default:
          phrase = "The flames were too frozen...";
          break;
      }
      this.add(`c:|${(0, import_scripts.getName)("Lyna \u6C37")}|${phrase}`);
    }
  },
  maia: {
    noCopy: true,
    onStart(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("Maia")}|gm ${(0, import_scripts.enemyStaff)(pokemon)}`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Maia")}|(cat)ch you later`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Maia")}|gn`);
    }
  },
  marillvibes: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("marillvibes \u266B")}|Is that a __rat__?`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("marillvibes \u266B")}|Here for a good time, not a long time!`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("marillvibes \u266B")}|The vibes are off... :(`);
    }
  },
  mathy: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Mathy")}|Nooooo i broke tera again`);
    },
    onSwitchOut(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("Mathy")}|whatever i'll make ${(0, import_scripts.enemyStaff)(pokemon)} fix it`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Mathy")}|thanks for making my job harder :/`);
    }
  },
  merritty: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Merritty")}|Deadline.`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Merritty")}|If you believe there's been a mistake, please let me know ASAP.`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Merritty")}|congratulations to our winner`);
    },
    innateName: "Tourban",
    shortDesc: "Takes half damage from Ghost moves, deals double damage to Ghost-types.",
    onSourceModifyDamage(damage, source, target, move) {
      if (source.illusion)
        return;
      if (move.type === "Ghost") {
        this.debug("Tourban Ghost weaken");
        return this.chainModify(0.5);
      }
    },
    onModifyDamage(damage, source, target, move) {
      if (source.illusion)
        return;
      if (target?.hasType("Ghost")) {
        this.debug("Tourban boost");
        return this.chainModify(2);
      }
    }
  },
  meteordash: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Meteordash")}|hi`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Meteordash")}|oh`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Meteordash")}|man.`);
    }
  },
  mex: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Mex")}|Time to make the donuts.`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Mex")}|Brb, there's a Dialga raid.`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Mex")}|pain.`);
    }
  },
  miojo: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Miojo")}|They see me rollin'`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Miojo")}|They hatin'`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Miojo")}|Em caso de investiga\xE7\xE3o policial, eu declaro que n\xE3o tenho envolvimento com este grupo e n\xE3o sei como estou no mesmo, provavelmente fui inserido por terceiros, declaro que estou disposto a colaborar com as investiga\xE7\xF5es e estou disposto a me apresentar a depoimento se necess\xE1rio`);
    }
  },
  monkey: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Monkey")}|Hmm, monke`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Monkey")}|Don't mind me I was just monkeying around`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Monkey")}|I'm a seeker too. But my dreams aren't like yours. I can't help thinking that somewhere in the universe there has to be something better than man. Has to be.`);
    }
  },
  mypearl: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("MyPearl")}|sim, estou no ssb, like se amaste`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("MyPearl")}|nossa, ela \xE9 t\xE3aaao regina george`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("MyPearl")}|ta permitido isso?`);
    }
  },
  neko: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Neko")}|Gmeow :3`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Neko")}|Meow go poof :3c`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Neko")}|Chien-Meow is cute when it doesn't scratch the ground, between it and Flutter Mane its dangerous to go out and ladder. You have been warned ;w;`);
    }
  },
  ney: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Ney")}|Hi I'm Ney. I love mischiefs.`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Ney")}|Unloading more tricks.`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Ney")}|How long am I banned for?`);
    }
  },
  notater517: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Notater517")}|OwO What's This?`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Notater517")}|brb, dealing with mobile connection, here's a song to listen to before I return: https://www.youtube.com/watch?v=dQw4w9WgXcQ`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Notater517")}|ngl that was pretty sus \u0DA9`);
    }
  },
  nya: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("nya~ \u2764")}|:3`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("nya~ \u2764")}|nya~`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("nya~ \u2764")}|>~<`);
    },
    innateName: "Fickle Beam",
    shortDesc: "This Pokemon's moves have a 30% chance to be doubled in power.",
    onBasePower(basePower, attacker, defender, move) {
      if (attacker.illusion)
        return;
      if (this.randomChance(3, 10)) {
        let allOutAnim = "Draco Meteor";
        switch (move.id) {
          case "voltswitch":
            allOutAnim = "Thunder";
            break;
          case "freezedry":
            allOutAnim = "Glacial Lance";
            break;
          case "triattack":
            allOutAnim = "Blood Moon";
            break;
          case "3":
            allOutAnim = "Fleur Cannon";
            break;
        }
        this.attrLastMove("[anim] " + allOutAnim);
        this.add("-activate", attacker, "move: Fickle Beam");
        return this.chainModify(2);
      }
    }
  },
  pants: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("pants")}|hell yeah, bro`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("pants")}|cya, dude :)`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("pants")}|peace, bud`);
    }
  },
  partman: {
    noCopy: true,
    onStart(pokemon) {
      let message;
      switch (this.toID((0, import_scripts.enemyStaff)(pokemon))) {
        case "partman":
          message = "Hii Q - oh, it's just me.";
          break;
        case "arsenal":
          message = "Do I count as a gunner?";
          break;
        case "aqrator":
          message = "Speaking of cafes - this Pokemon is so popular, it has an entire cafe dedicated to it in the Pokemon world! Alongside the cafe, there's also stuff like a bus tour where you can sit one-on-one with the Pokemon and admire its beauty.";
          break;
        case "beowulf":
          message = "BEE";
          break;
        case "breadey":
          message = "BREADBOWL";
          break;
        case "clerica":
          message = "SMELY HIIII";
          break;
        case "computerwizard8800":
          message = "CWIZ SLEEP";
          break;
        case "hydrostatics":
          message = "Here to bully Hydro";
          break;
        case "kennedy":
          message = "Down the reds!";
          break;
        case "kry":
          this.add(`c:|${(0, import_scripts.getName)("PartMan")}|%r 14 // @Kry`);
          this.add(`c:|${(0, import_scripts.getName)("Ice Kyubs")}|Roll: 14`);
          message = null;
          break;
        case "mex":
          message = "Probopass moment";
          break;
        case "monkey":
          message = "Remember to smile!";
          break;
        case "notater517":
          message = "E-excuse me s-senpai >///<";
          break;
        case "pissog":
          message = "Ma ciaomi queste noci";
          break;
        case "pyro":
          message = "Fight me you boiled potato";
          break;
        case "rsb":
          message = "/me hugs";
          break;
        case "siegfried":
          message = "Is Sieg baked or boiled?";
          break;
        case "softflex":
          message = "/me softly flexes";
          break;
        case "sulo":
          message = "...Sulo's AFK again, aren't they?";
          break;
        case "trace":
          this.add("-message", `PartMan's Neutralizing Gas filled the area! (but not really)`);
          message = null;
          break;
        case "warriorgallade":
          message = "Berry nice to meet you!";
          break;
        case "za":
          message = "/me shitposts";
          break;
        case "zalm":
          message = "<(:O)00000>";
          break;
        default:
          message = "Hiii QT :3";
      }
      if (message)
        this.add(`c:|${(0, import_scripts.getName)("PartMan")}|${message}`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("PartMan")}|Deez nuts`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("PartMan")}|Okay weeb`);
    },
    onAnySwitchIn(pokemon) {
      if (pokemon.name === "Hydrostatics") {
        this.add(`c:|${(0, import_scripts.getName)("PartMan")}|LUAAAAA!`);
        this.add(`c:|${(0, import_scripts.getName)("PartMan")}|/me pats`);
      }
    },
    onFoeFaint(target, source, effect) {
      if (target.name === "Hydrostatics")
        return;
      this.add(`c:|${(0, import_scripts.getName)("PartMan")}|Skill issue`);
    },
    onHit(target, source, move) {
      if (!move.num) {
        this.add(`c:|${(0, import_scripts.getName)("PartMan")}|That's what she said!`);
      }
    },
    innateName: "Skill Issue",
    shortDesc: "Any move that does damage equal to this Pokemon's max HP fails.",
    // onDamagePriority: 1,
    onDamage(damage, target, source, effect) {
      if (target.illusion)
        return;
      if (effect?.effectType === "Move" && damage >= target.maxhp) {
        this.add("-activate", target, "ability: Skill Issue");
        this.add(`c:|${(0, import_scripts.getName)("PartMan")}|THAT'S WHAT SHE SAID!`);
        return false;
      }
    }
  },
  pastorgigas: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Pastor Gigas")}|Turn back to God`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Pastor Gigas")}|I'll leave, but God stays forever`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Pastor Gigas")}|I'm going to pray for you`);
    }
  },
  peary: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Peary")}|This bout to grind yalls gears`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Peary")}|Did my Part, no Man`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Peary")}|Blood all on my gears... damn`);
    }
  },
  phoopes: {
    noCopy: true,
    innateName: "Gen 1 Special Stat",
    desc: "SpA stat changes also change SpD and vice versa.",
    // implemented in scripts
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("phoopes")}|phoopes! (There It Is)`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("phoopes")}|phoopes! (There He Goes)`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("phoopes")}|Jynx! Knock on wood`);
    }
  },
  pissog: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Pissog")}|Hi I'm Pissog ^^`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Pissog")}|^^ gossiP m'I iH`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Pissog")}|Yes, there are two paths you can go by, but in the long run`);
    }
  },
  pokemonvortex: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("pokemonvortex")}|i just like the bowtie`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("pokemonvortex")}|ok`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("pokemonvortex")}|\u4EBA\u4E0D\u53EF\u8C8C\u76F8\uFF0C\u6D77\u6C34\u4E0D\u53EF\u6597\u91CF`);
    }
  },
  princessautumn: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Princess Autumn")}|good meowning, here's why you're wrong.`);
    },
    onSwitchOut(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("Princess Autumn")}|good nyight, I'm always right.`);
      if (pokemon.illusion || !pokemon.status)
        return;
      this.add("-curestatus", pokemon, pokemon.status, "[from] ability: Natural Cure");
      pokemon.clearStatus();
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Princess Autumn")}|We let TPP cook too hard...`);
    },
    innateName: "Natural Cure"
  },
  ptoad: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("ptoad")}|/me enters the stage`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("ptoad")}|Taking 5!`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("ptoad")}|Who told you you're allowed to rain on my parade?`);
    }
  },
  pulseks: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Pulse_kS")}|Mid Skill, God Luck`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Pulse_kS")}|brb lemme run the numbers`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Pulse_kS")}|If my model is accurate (it isn't)`);
    }
  },
  pyro: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("PYRO")}|and I'm your host, the Supervillain`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("PYRO")}|Operation: Lifesaver is in effect, as of right now`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("PYRO")}|Just remember ALL CAPS when you spell the man name...`);
    },
    onSourceAfterFaint(length, target, source, effect) {
      if (effect?.effectType === "Move") {
        if (effect.id === "meatgrinder") {
          this.add(`c:|${(0, import_scripts.getName)("PYRO")}|Tripping off the beat kinda, dripping off the meat grinder`);
          return;
        }
        if (!source.m.msgPlayed) {
          this.add(`c:|${(0, import_scripts.getName)("PYRO")}|This Villain was a ruthless mass conqueror, with aspirations to dominate the universe`);
          source.m.msgPlayed = true;
        }
      }
    }
  },
  quitequiet: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Quite Quiet")}|what are we even doing here`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Quite Quiet")}|hm`);
    }
  },
  quziel: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("quziel")}|Gaze`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("quziel")}|See y-disconnects`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("quziel")}|I am become Tilt`);
    }
  },
  r8: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("R8")}|!randcat`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("R8")}|wow emoji`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("R8")}|Getting KOed won't prevent me from making propaganda: https://www.smogon.com/forums/forums/national-dex-other-tiers.738/`);
    }
  },
  rainshaft: {
    noCopy: true,
    onStart(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("Rainshaft")}|Hello ${pokemon.side.name} and ${pokemon.side.foe.name} :P`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Rainshaft")}|Hope you got lucky there...`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Rainshaft")}|You weren't lucky enough, join <<survivor>> for more practice XD`);
    }
  },
  ransei: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Ransei")}|Heyo, I'm hosting a program known as Pok\xE9mon Lore Tutoring this generation and I was wondering if any of you guys would be interested in tutoring. Every generation of Pok\xE9mon lore is available for tutoring, however we are in need of tutors to start off with. If you are interested let me know. Oh yeah I'm also hosting a program known as OM Tutoring.`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Ransei")}|A perfect world of Pok\xE9mon has everything balanced, whether it's truth and ideals, life and death, time and space, or the organisms of nature and the organisms of whom were genetically engineered. All Pok\xE9mon are welcomed as long as they help maintain this balance. Remember this. It's what Arceus always wanted.`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Ransei")}|Well, at least I tried. ripsei.`);
    }
  },
  returntomonkey: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("ReturnToMonkey")}|Where banana`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("ReturnToMonkey")}|**Monkey Scream**`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("ReturnToMonkey")}|Reject the humanity...if you dare...`);
    }
  },
  riovidal: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Rio Vidal")}|It's not my fault you're, like, in love with me!`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Rio Vidal")}|That's why her hair is so big. It's full of secrets.`);
    },
    onFoeSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Rio Vidal")}|You wanna do something fun? You wanna go to Taco Bell?`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Rio Vidal")}|Gretchen, I'm sorry I laughed at you that time you got diarrhea at Barnes & Noble. And I'm sorry for telling everyone about it. And I'm sorry for repeating it now.`);
    }
  },
  rissoux: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Rissoux")}|:squad:`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Rissoux")}|Welcome to the Family`);
    }
  },
  rsb: {
    noCopy: true,
    onStart(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("RSB")}|Time to take a bite out of crime!`);
      const dog = this.toID((0, import_scripts.enemyStaff)(pokemon));
      if (dog === "rsb" || dog === "shiloh" || dog === "valerian" || dog === "breadey" || dog === "yuki") {
        this.add(`c:|${(0, import_scripts.getName)("RSB")}|DOGGO!`);
      }
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("RSB")}|Requesting backup!`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("RSB")}|Officer down.`);
    },
    onBasePowerPriority: 19,
    onBasePower(basePower, attacker, defender, move) {
      if (!attacker.illusion && move.flags["bite"]) {
        return this.chainModify(1.5);
      }
    },
    onTryHit(target, source, move) {
      if (!target.illusion && target !== source && move.type === "Fire") {
        move.accuracy = true;
        if (!target.addVolatile("flashfire")) {
          this.add("-immune", target, "[from] ability: Flash Fire");
        }
        return null;
      }
    },
    onEnd(pokemon) {
      pokemon.removeVolatile("flashfire");
    },
    innateName: "Flash Fire + Strong Jaw",
    shortDesc: "Flash Fire + Strong Jaw."
  },
  rumia: {
    noCopy: true,
    onStart(pokemon) {
      if ((0, import_scripts.enemyStaff)(pokemon) === "kolohe") {
        this.add(`c:|${(0, import_scripts.getName)("Rumia")}|OMG who could that be (\u2060\u25CF\u2060\u2661\u2060\u2200\u2060\u2661\u2060)`);
      } else {
        this.add(`c:|${(0, import_scripts.getName)("Rumia")}|is the mon in front of me the edible kind?`);
      }
    },
    onSwitchOut(pokemon) {
      if ((0, import_scripts.enemyStaff)(pokemon) === "kolohe") {
        this.add(`c:|${(0, import_scripts.getName)("Rumia")}|i cant bring myself to do this...`);
      } else {
        this.add(`c:|${(0, import_scripts.getName)("Rumia")}|brb ^_^`);
      }
    },
    onFaint(pokemon) {
      if ((0, import_scripts.enemyStaff)(pokemon) === "kolohe") {
        this.add(`c:|${(0, import_scripts.getName)("Rumia")}|this is the best way to go out...`);
      } else {
        this.add(`c:|${(0, import_scripts.getName)("Rumia")}|is that sooooo...`);
      }
    }
  },
  scotteh: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Scotteh")}|\`\`Compilation completed successfully. Executing...\`\``);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Scotteh")}|\`\`Execution temporarily paused.\`\``);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Scotteh")}|\`\`Segmentation fault (core dumped)\`\``);
    }
  },
  sexymalasada: {
    noCopy: true,
    onStart(pokemon) {
      switch (this.toID((0, import_scripts.enemyStaff)(pokemon))) {
        case "wigglytree":
          this.add(`c:|${(0, import_scripts.getName)("SexyMalasada")}|Hey Wiggles! I made pizza again! Wanna learn more RNG btw?`);
          break;
        case "appletunalamode":
          this.add(`c:|${(0, import_scripts.getName)("SexyMalasada")}|And now you must learn how to RNG with nothing but a sundial for a timer! __Trust me!__`);
          break;
        case "loethalion":
          this.add(`c:|${(0, import_scripts.getName)("SexyMalasada")}|For the hundredth time Loe, check. the. pins.`);
          break;
        case "nicolic":
          this.add(`c:|${(0, import_scripts.getName)("SexyMalasada")}|Hi Nic! Why you keep postponing learning old-gen RNG? q_q`);
          break;
        case "swiffix":
          this.add(`c:|${(0, import_scripts.getName)("SexyMalasada")}|....something smells in here`);
          break;
        case "mex":
          this.add(`c:|${(0, import_scripts.getName)("SexyMalasada")}|Today is the day you finally learn RNG Mex, deal with it!`);
          break;
        case "clefable":
          this.add(`c:|${(0, import_scripts.getName)("SexyMalasada")}|Oi! I'm not hacking, it's RNG!`);
          break;
        case "billo":
          this.add(`c:|${(0, import_scripts.getName)("SexyMalasada")}|Billo help! The tool isn't working again q_q`);
          break;
        default:
          this.add(`c:|${(0, import_scripts.getName)("SexyMalasada")}|Hello! Do you have some time to talk about RNGesus and its awesome teachings: The Art of RNG abuse??`);
          break;
      }
    },
    onSwitchOut(pokemon) {
      switch (this.toID((0, import_scripts.enemyStaff)(pokemon))) {
        case "loethalion":
          this.add(`c:|${(0, import_scripts.getName)("SexyMalasada")}|fricking heck`);
          break;
        case "swiffix":
          this.add(`c:|${(0, import_scripts.getName)("SexyMalasada")}|Just shower already!`);
          break;
        case "billo":
          this.add(`c:|${(0, import_scripts.getName)("SexyMalasada")}|Fiiiine I'll read the wiki...`);
          break;
        default:
          this.add(`c:|${(0, import_scripts.getName)("SexyMalasada")}|Crap! I missed my frame... Resetting... q_q`);
          break;
      }
    },
    onFaint(pokemon) {
      switch (this.toID((0, import_scripts.enemyStaff)(pokemon))) {
        case "loethalion":
          this.add(`c:|${(0, import_scripts.getName)("SexyMalasada")}|fricking heck`);
          break;
        case "swiffix":
          this.add(`c:|${(0, import_scripts.getName)("SexyMalasada")}|Just shower already!`);
          break;
        case "billo":
          this.add(`c:|${(0, import_scripts.getName)("SexyMalasada")}|Fiiiine I'll read the wiki...`);
          break;
        default:
          this.add(`c:|${(0, import_scripts.getName)("SexyMalasada")}|Well then.. have fun soft-resetting for your shiny! >:( Cya on the flipside \u{1F576}\uFE0F`);
          break;
      }
    }
  },
  sharpclaw: {
    noCopy: true,
    onStart(pokemon) {
      if (pokemon.species.name === "Sneasel") {
        this.add(`c:|${(0, import_scripts.getName)("sharp_claw")}|Hi, I'm Tumble! hf :D`);
      } else {
        this.add(`c:|${(0, import_scripts.getName)("sharp_claw")}|Hi, I'm Rough! gl >:)`);
      }
    },
    onSwitchOut(pokemon) {
      if (pokemon.species.name === "Sneasel") {
        this.add(`c:|${(0, import_scripts.getName)("sharp_claw")}|brb, getting my brother :3`);
        if (pokemon.illusion)
          return;
        (0, import_scripts.changeSet)(this, pokemon, import_random_teams.ssbSets["sharp_claw-Rough"]);
      } else {
        this.add(`c:|${(0, import_scripts.getName)("sharp_claw")}|brb, getting my sister c:`);
        if (pokemon.illusion)
          return;
        (0, import_scripts.changeSet)(this, pokemon, import_random_teams.ssbSets["sharp_claw"]);
      }
    },
    onFaint(pokemon) {
      if (pokemon.species.name === "Sneasel") {
        this.add(`c:|${(0, import_scripts.getName)("sharp_claw")}|ur no fun ;~;`);
      } else {
        this.add(`c:|${(0, import_scripts.getName)("sharp_claw")}|ur no fun T_T`);
      }
    },
    innateName: "Rough and Tumble",
    shortDesc: "Changes Sneasel forme on switch out."
  },
  siegfried: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Siegfried")}|You say goodbye and I say hello`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Siegfried")}|Oh, I get by with a little help from my friends.`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Siegfried")}|Living is easy with eyes closed.`);
    }
  },
  sificon: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Sificon~")}|gm (it's 4pm and I woke up just now)`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Sificon~")}|guess I'll go to bed (we all know that I won't)`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Sificon~")}|oop`);
    }
  },
  skies: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("skies")}|the baddest in the room, so tell em to make room... `);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("skies")}|u thought i was feelin u?`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("skies")}|what did i do? like?`);
    }
  },
  snake: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("snake")}|CAP Concept: Pure Utility Pokemon`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("snake")}|CAP is a community focused project that creates singular Pokemon through structured Smogon based discussion threads. We define a concept to build around and proceed through various stages to determine typing, ability, stats, and movepool to complement that concept. We also run stages to determine a CAP's art, name, Pokedex entry, and sprite, so even if you're not a competitive Pokemon person you can get involved. At the end of each process we implement each CAP here on Pokemon Showdown!, where they are made available with the rest of our creations in the CAP metagame, found under 'S/V Singles'.`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("snake")}|CAP does not accept personal creations. This refers to any idea for a Pokemon that already has predefined typing, stats, abilities, movepool, name, art, pokedex entries, weight, height, or even generic themes such as "rabbit" or "angry". These facets of a Pokemon are all decided through community discussion in CAP during the CAP process. If you think you have an idea for a Pokemon that does not define these features, you may have a concept. CAP bases our Pokemon around concepts that look to explore the mechanics behind Pokemon and we take open submissions whenever we start a new project. Examples of past concepts include Perfect Sketch User, Momentum, Trapping mechanics, delayed move user, and weather enabler.`);
    }
  },
  softflex: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Soft Flex")}|*beep beep beep*`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Soft Flex")}|*whrrrr*`);
    }
  },
  solaroslunaris: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Solaros & Lunaris")}|Get a taste of this!`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Solaros & Lunaris")}|Too hot to handle!`);
    }
  },
  spiderz: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Spiderz")}|whats good gangy`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Spiderz")}|im moving DIFFERENT`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Spiderz")}|fuck 12`);
    }
  },
  spoo: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("spoo")}|hemogoblin`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("spoo")}|danger`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("spoo")}|dies`);
    }
  },
  steorra: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Steorra")}|BOO`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Steorra")}|Into the shadows I go`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Steorra")}|I'm dead but not really (lol ghost)`);
    }
  },
  struchni: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Struchni")}|~tt newgame`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Struchni")}|~tt endgame`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Struchni")}|**selfveto**`);
    }
  },
  sulo: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Sulo")}|everybody is so damn dramatic. me included.`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Sulo")}|afk sorry guys brb`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Sulo")}|Charon, take me home...`);
    }
  },
  swiffix: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Swiffix")}|:uwupip:`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Swiffix")}|brb, gonna get some ketchup for my pizza`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Swiffix")}|Remember: it's pp, not pfp!`);
    },
    innateName: "Skill Link",
    onModifyMove(move, pokemon, target) {
      if (pokemon.illusion)
        return;
      if (move.multihit && Array.isArray(move.multihit) && move.multihit.length) {
        move.multihit = move.multihit[1];
      }
      if (move.multiaccuracy) {
        delete move.multiaccuracy;
      }
    }
  },
  syrinix: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Syrinix")}|You kept me like a secret but I kept you like an oath`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Syrinix")}|They don't think it be like it is, but it do`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Syrinix")}|Aight Imma head out`);
    }
  },
  teclis: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Teclis")}|Thanks for having me.`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Teclis")}|Until next time!`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Teclis")}|This was my last dance.`);
    }
  },
  tenshi: {
    noCopy: true,
    onStart(pokemon) {
      switch (this.toID((0, import_scripts.enemyStaff)(pokemon))) {
        case "blitz":
          this.add(`c:|${(0, import_scripts.getName)("Tenshi")}|le fishe`);
          break;
        case "ut":
        case "clouds":
          this.add(`c:|${(0, import_scripts.getName)("Tenshi")}|birbs cannot save u from SAND`);
          break;
        default:
          this.add(`c:|${(0, import_scripts.getName)("Tenshi")}|he SLEUTHING`);
      }
    },
    onSwitchOut(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("Tenshi")}|omg no SAND save him! :(`);
      const replacementIndex = Math.max(
        pokemon.moves.indexOf("pyroball"),
        pokemon.moves.indexOf("aquatail"),
        pokemon.moves.indexOf("tripleaxel"),
        pokemon.moves.indexOf("stoneedge")
      );
      if (replacementIndex < 0) {
        return;
      }
      const replacement = this.dex.moves.get("dynamicpunch");
      const replacementMove = {
        move: replacement.name,
        id: replacement.id,
        pp: replacement.pp,
        maxpp: replacement.pp,
        target: replacement.target,
        disabled: false,
        used: false
      };
      pokemon.moveSlots[replacementIndex] = replacementMove;
      pokemon.baseMoveSlots[replacementIndex] = replacementMove;
    },
    onFaint(pokemon) {
      switch (this.toID((0, import_scripts.enemyStaff)(pokemon))) {
        case "blitz":
          this.add(`c:|${(0, import_scripts.getName)("Tenshi")}|YOU KILLED YOUR SON`);
          break;
        case "ut":
          this.add(`c:|${(0, import_scripts.getName)("Tenshi")}|worryrex`);
          break;
        case "clouds":
          this.add(`c:|${(0, import_scripts.getName)("Tenshi")}|SAND is no longer in the air tonight :(`);
          break;
        default:
          this.add(`c:|${(0, import_scripts.getName)("Tenshi")}|Wait no that's illegal`);
      }
    }
  },
  tico: {
    noCopy: true,
    onStart(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("Tico")}|oie`);
      if (pokemon.illusion)
        return;
      this.add("-ability", pokemon, "Mold Breaker");
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Tico")}|t+`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Tico")}|It's been 3,000 years\u2026`);
    },
    onModifyMove(move, pokemon) {
      if (pokemon.illusion)
        return;
      move.ignoreAbility = true;
    },
    innateName: "Mold Breaker"
  },
  thejesucristoosama: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("TheJesucristoOsAma")}|In the name of the Father, the Son and the Holy Spirit. I bless you, Amen.`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("TheJesucristoOsAma")}|Oh well, I think it's time to call my apostles.`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("TheJesucristoOsAma")}|And that's how I've died for the third time, I'll go to host a game at eventos.`);
    }
  },
  traceuser: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("trace")}|I'm both the beginning and the end.`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("trace")}|Why does the violence never end?`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("trace")}|How disappointingly short a dream lasts.`);
    }
  },
  tuthur: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Tuthur")}|QUEUE !`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Tuthur")}|feur`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Tuthur")}|this wouldn't have gone like this if we'd played kunc`);
    }
  },
  twoofroses: {
    noCopy: true,
    onStart(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("Two of Roses")}|I'm here! I'm uhh- Yes! Also hi! Happy to be here.`);
      this.singleEvent("WeatherChange", this.effect, this.effectState, pokemon);
      this.singleEvent("TerrainChange", this.effect, this.effectState, pokemon);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Two of Roses")}|Pfft! I prefer lurking anyway.`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Two of Roses")}|It matters not how much we try but only that we try. For if the tides swell the dunes of a timeless existence, and our strength wanes in the coming unlight- And if we are to be as the forsaken namesakes before us, for the yesterday that never came and the tomorrow that is forever promised, know this; We dilly, so they do not dally...`);
    },
    innateName: "Wonderer",
    shortDesc: "This Pokemon's secondary type changes based on the active weather or terrain, monotype if neither.",
    onWeatherChange(target, source, sourceEffect) {
      const currentWeather = this.field.getWeather().id;
      const currentTerrain = this.field.getTerrain().id;
      let type;
      if (!currentWeather && !target.hasType("Dark")) {
        if (currentTerrain) {
          this.singleEvent("TerrainChange", this.effect, this.effectState, target);
          return;
        }
        type = "Dark";
      } else if (currentWeather) {
        if (["raindance", "primordialsea"].includes(currentWeather) && !target.hasType("Water")) {
          type = "Water";
        } else if (["sunnyday", "desolateland"].includes(currentWeather) && !target.hasType("Fire")) {
          type = "Fire";
        } else if (["sandstorm", "deserteddunes"].includes(currentWeather) && !target.hasType("Rock")) {
          type = "Rock";
        } else if (["hail", "snowscape"].includes(currentWeather) && !target.hasType("Ice")) {
          type = "Ice";
        } else {
        }
      }
      if (type && !target.terastallized) {
        target.addType(type);
        this.add("-start", target, "typeadd", type, "[from] ability: Wonderer");
      }
    },
    onTerrainChange(target, source, sourceEffect) {
      const currentWeather = this.field.getWeather().id;
      const currentTerrain = this.field.getTerrain().id;
      let type;
      if (!currentTerrain && !target.hasType("Dark")) {
        if (currentWeather) {
          this.singleEvent("WeatherChange", this.effect, this.effectState, target);
          return;
        }
        type = "Dark";
      } else if (currentTerrain) {
        if (currentTerrain === "electricterrain") {
          target.setType("Electric");
          type = "";
        } else if (currentTerrain === "psychicterrain" && !target.hasType("Psychic")) {
          type = "Psychic";
        } else if (currentTerrain === "grassyterrain" && !target.hasType("Grass")) {
          type = "Grass";
        } else if (currentTerrain === "mistyterrain" && !target.hasType("Fairy")) {
          type = "Fairy";
        } else if (!target.hasType("Ghost")) {
          type = "Ghost";
        }
      }
      if (type && !target.terastallized) {
        target.addType(type);
        this.add("-start", target, "typeadd", type, "[from] ability: Wonderer");
      }
    }
  },
  ut: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("UT")}|__being this young is art, aquamarine__`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("UT")}|__make sure nobody sees you leave__`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("UT")}|__swaying as the room burnded down__`);
    }
  },
  valerian: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Valerian \u273F \u2661")}|Lucario's shiny should've been red.`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Valerian \u273F \u2661")}|As a wise man once said, "I'll be back".`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Valerian \u273F \u2661")}|My name is based on a flower, NOT the movie!`);
    }
  },
  venous: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Venous")}|bro the flute on stal is bonkers`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("2013 hindi room")}|when i said tine wins i didnt mean now`);
      this.add(`c:|${(0, import_scripts.getName)("Venous")}|dw watch this`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Venous")}|teachin bitches how to swim`);
    }
  },
  violet: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Vio\u035C\u0361let")}|I'm not hating you just decided to be wrong`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Vio\u035C\u0361let")}|anyway\u2026`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Vio\u035C\u0361let")}|blatantly carried by cheating but you'll still find a way to downplay`);
    },
    innateName: "Do No Evil",
    shortDesc: "When this Pokemon uses an attacking move, it transforms into the Ogerpon form of the corresponding type.",
    onModifyMove(move, attacker, defender) {
      if (attacker.species.baseSpecies !== "Ogerpon" || attacker.transformed)
        return;
      let targetForme = "Ogerpon";
      switch (move.type) {
        case "Rock":
          targetForme += "-Cornerstone";
          break;
        case "Fire":
          targetForme += "-Hearthflame";
          break;
        case "Water":
          targetForme += "-Wellspring";
          break;
        case "Grass":
          break;
        default:
          return;
      }
      if (attacker.terastallized)
        targetForme += (targetForme === "Ogerpon" ? "-Teal" : "") + "-Tera";
      if (attacker.species.name !== targetForme) {
        this.add("-activate", attacker, "ability: Do No Evil");
        attacker.formeChange(targetForme);
      }
    }
  },
  vistar: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Vistar")}|Oh hi! (0_0)/`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Vistar")}|I'll go on a break, wait for me!`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Vistar")}|So... this is how my career ends...`);
    }
  },
  vmnunes: {
    noCopy: true
  },
  warriorgallade: {
    noCopy: true,
    onStart(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("WarriorGallade")}|i wanted to proc berries, but it seems that i was better at proc rastinating instead. nom nom nom.`);
      if (this.toID((0, import_scripts.enemyStaff)(pokemon)) === "aqrator") {
        this.add(`c:|${(0, import_scripts.getName)("WarriorGallade")}|Hi Tori, how goes your conquest?`);
      }
      if (pokemon.illusion)
        return;
      pokemon.abilityState.gluttony = true;
      this.add("-activate", pokemon, "ability: Nutrient Boost");
      this.boost({ def: 1, spd: 1 }, pokemon);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("WarriorGallade")}|amidst this tactical retreat, you didn't think i forgot about the pokeradar, did you? you can bet that my return with even more questions will be __eventful__ :3`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("WarriorGallade")}|a wig flew, and now i must bid you adieu. farewell my berries accrued, for this is the end of my etude.`);
    },
    onSourceAfterFaint() {
      this.add(`c:|${(0, import_scripts.getName)("WarriorGallade")}|Triumphant through trouncing tough, tenacious threats today, though testing 212 takeovers tarry. Theorizing these techniques tends to torrid, terribly tiresome tabulations, therefore torrential tactics traverse thorough thoughts.`);
    },
    innateName: "Nutrient Boost",
    shortDesc: "Gluttony + Thick Fat + Neuroforce + +1 Def/Sp. Def boost.",
    onDamage(item, pokemon) {
      if (pokemon.illusion)
        return;
      pokemon.abilityState.gluttony = true;
    },
    onSourceModifyAtkPriority: 6,
    onSourceModifyAtk(atk, attacker, defender, move) {
      if (defender.illusion)
        return;
      if (move.type === "Ice" || move.type === "Fire") {
        this.debug("Thick Fat weaken");
        return this.chainModify(0.5);
      }
    },
    onSourceModifySpAPriority: 5,
    onSourceModifySpA(atk, attacker, defender, move) {
      if (defender.illusion)
        return;
      if (move.type === "Ice" || move.type === "Fire") {
        this.debug("Thick Fat weaken");
        return this.chainModify(0.5);
      }
    },
    onModifyDamage(damage, source, target, move) {
      if (source.illusion)
        return;
      if (move && target.getMoveHitData(move).typeMod > 0) {
        return this.chainModify([5120, 4096]);
      }
    }
  },
  waves: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Waves")}|Nice opinion, one small issue: 252+ SpA Wailord Water Spout (150 BP) vs. 0 HP / 0- SpD Your Argument in Rain: 1202-1416 (413 - 486.5%) -- guaranteed OHKO.`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Waves")}|Ocean man, take me by the hand.`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Waves")}|/me waves goodbye.`);
    }
  },
  wigglytree: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("WigglyTree")}|hi ur qt :3`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("WigglyTree")}|Is that a watering can I see?`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("WigglyTree")}|Keep wiggling!`);
    }
  },
  xprienzo: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("XpRienzo \u2611\u25E1\u2611")}|Would I lie to you?`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("XpRienzo \u2611\u25E1\u2611")}|What? You don't trust me? >.>`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("XpRienzo \u2611\u25E1\u2611")}|Bleh, lame.`);
    }
  },
  xy01: {
    noCopy: true
  },
  yeetdabxd: {
    noCopy: true,
    onStart(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("yeet dab xd")}|Ah, welcome~! The merchandise you have chosen will cost your soul. Is that acceptable?`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("yeet dab xd")}|brb mum's getting the camera`);
    },
    onFaint(pokemon) {
      if (pokemon.m.seedActivated)
        return;
      this.add(`c:|${(0, import_scripts.getName)("yeet dab xd")}|wait no you didn't join QW yet`);
    }
  },
  yellowpaint: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Yellow Paint")}|cheers`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Yellow Paint")}|luckynbad`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Yellow Paint")}|The canvas is filled with different screams.`);
    },
    onModifyMove(move) {
      if (move.id === "iondeluge") {
        move.onHitField = function() {
          this.add(`c:|${(0, import_scripts.getName)("Yellow Paint")}|Paint it Yellow!`);
        };
      }
    }
  },
  yuki: {
    noCopy: true,
    innateName: "Snow Warning",
    onStart(source) {
      if (source.illusion)
        return;
      this.field.setWeather("snowscape", source, this.dex.abilities.get("snowwarning"));
    }
  },
  yveltalnl: {
    noCopy: true,
    onStart(pokemon) {
      this.add(`c:|${(0, import_scripts.getName)("YveltalNL")}|It's over ${pokemon.side.foe.name}, I have the high ground!`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("YveltalNL")}|brb playing a draft game rq`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("YveltalNL")}|whatever i'll go watch football`);
    }
  },
  za: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("za")}|Benvenuto`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("za")}|mish`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("za")}|!track Between the Buried and Me - Sun Of Nothing - 2020 Remix / Remaster`);
    }
  },
  zalm: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("Zalm")}|<(:O)00000>`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("Zalm")}|brb gonna check if my lasagne didn't explode e-e`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("Zalm")}|I should have picked an actual fish pok\xE9mon like veluza instead...`);
    }
  },
  zarel: {
    noCopy: true
  },
  zee: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("zee")}|So is this your first VGC tournament?`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("zee")}|Sorry, I've got a plane to catch!`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("zee")}|Hey everyone it's been a great time working with you all in this Super Staff Bros battle but I think it's the right time for me to step down. Thank you all and see you around.`);
    }
  },
  zoro: {
    noCopy: true,
    onStart() {
      this.add(`c:|${(0, import_scripts.getName)("zoro")}|gmeow`);
    },
    onSwitchOut() {
      this.add(`c:|${(0, import_scripts.getName)("zoro")}|brb I want to chase some yarn`);
    },
    onFaint() {
      this.add(`c:|${(0, import_scripts.getName)("zoro")}|time to take a cat nap`);
    }
  },
  // Custom effects
  // Clementine
  flipped: {
    name: "Flipped",
    onStart(target) {
      this.add("-start", target, "flipped");
    },
    onEnd(target) {
      this.add("-end", target, "flipped");
    }
  },
  // dhelmise
  bioticorbself: {
    name: "Biotic Orb (Self)",
    // side condition
    effectType: "Condition",
    duration: 4,
    onSideStart(side, source) {
      this.effectState.source = source;
      this.add("-sidestart", side, "move: Biotic Orb (Self)");
    },
    onResidualOrder: 5,
    onResidualSubOrder: 1,
    onResidual(target, pokemon, effect) {
      const source = this.effectState.source;
      const quotes = [
        `A cure for all that ails.`,
        `A sip for the parched.`,
        `Be nourished!`,
        `I offer something more.`,
        `Receive my aid.`,
        `Be nurtured.`,
        `Know mother's kindness.`,
        `A salve for all that ails.`,
        `An eldritch blessing.`,
        `Flourish.`,
        `Now feast.`,
        `Recover your strength.`
      ];
      if (target.hp) {
        let amount = 65;
        if (this.effectState.duration === 4)
          amount = 40;
        this.heal(amount, target, source, effect);
      }
      this.add(`c:|${(0, import_scripts.getName)((source.illusion || source).name)}|${this.sample(quotes)}`);
    },
    onSideResidualOrder: 26,
    onSideResidualSubOrder: 5,
    onSideEnd(side) {
      this.add("-sideend", side, "move: Biotic Orb (Self)");
    }
  },
  bioticorbfoe: {
    name: "Biotic Orb (Foe)",
    // side condition
    effectType: "Condition",
    duration: 4,
    onSideStart(side, source) {
      this.effectState.source = source;
      this.add("-sidestart", side, "move: Biotic Orb (Foe)");
    },
    onResidualOrder: 5,
    onResidualSubOrder: 1,
    onResidual(target, pokemon, effect) {
      const source = this.effectState.source;
      let quotes = [
        `A taste of poison.`,
        `Misery made manifest.`,
        `Pain is inevitable.`,
        `You cannot escape me!`,
        `Your end is within my reach.`,
        `B\xED ag stangadh leat.`,
        `Ruination is imminent.`,
        `The weak can fend for themselves.`,
        `Know darkness.`,
        `Let shadow consume you.`,
        `Your pain will be endless.`
      ];
      if (target.hp) {
        this.damage(50, target, source, effect);
      }
      if (target.fainted || target.hp <= 0) {
        quotes = [
          `Expect the unexpected.`,
          `In chaos lies opportunity.`,
          `Mind your surroundings.`,
          `Perhaps next time you should not stand in the way of the orb.`,
          `A torturous gift.`,
          `The darkness will find them.`,
          `The gloom takes you.`
        ];
      }
      this.add(`c:|${(0, import_scripts.getName)((source.illusion || source).name)}|${this.sample(quotes)}`);
    },
    onSideResidualOrder: 26,
    onSideResidualSubOrder: 5,
    onSideEnd(side) {
      this.add("-sideend", side, "move: Biotic Orb (Foe)");
    }
  },
  // EasyOnTheHills
  snack: {
    name: "Snack",
    duration: 3,
    onStart(target) {
      this.add("-start", target, "snack");
    },
    onEnd(target) {
      this.add("-end", target, "snack");
    },
    onResidualOrder: 5,
    onResidualSubOrder: 4,
    onResidual(target, source, effect) {
      this.heal(target.baseMaxhp / 4);
    }
  },
  // Elliot
  beefed: {
    name: "Beefed",
    onStart(target) {
      this.add("-start", target, "beefed");
    },
    onEnd(target) {
      this.add("-end", target, "beefed");
    },
    onModifyMovePriority: -1,
    onModifyMove(move, pokemon, target) {
      if (!target || !this.checkMoveMakesContact(move, pokemon, target) || move.category === "Status")
        return;
      if (!move.secondaries)
        move.secondaries = [];
      move.secondaries.push({
        chance: 30,
        status: "brn"
      });
    },
    onDamagingHitOrder: 1,
    onDamagingHit(damage, target, source, move) {
      if (this.checkMoveMakesContact(move, source, target, true)) {
        this.damage(source.baseMaxhp / 8, source, target);
      }
      if (this.checkMoveMakesContact(move, source, target) && this.randomChance(3, 10)) {
        source.trySetStatus("brn", target);
      }
    },
    onResidual(target, source, effect) {
      this.heal(target.baseMaxhp / 8);
    },
    onSourceAfterFaint(length, target, source, effect) {
      this.add(`c:|${(0, import_scripts.getName)("Elliot")}|Get Bovriled`);
    }
  },
  boiled: {
    name: "Boiled",
    onStart(target) {
      this.add("-start", target, "boiled");
    },
    onEnd(target) {
      this.add("-end", target, "boiled");
    },
    onModifySpAPriority: 5,
    onModifySpA(relayVar, source, target, move) {
      return this.chainModify(1.5);
    },
    onModifyMovePriority: -1,
    onModifyMove(move, pokemon, target) {
      if (!target)
        return;
      if (move.category !== "Status") {
        if (!move.secondaries)
          move.secondaries = [];
        move.secondaries.push({
          chance: 30,
          status: "brn"
        });
      }
    }
  },
  // Elly
  stormsurge: {
    name: "StormSurge",
    effectType: "Weather",
    duration: 5,
    durationCallback(source, effect) {
      if (source?.hasItem("damprock")) {
        return 8;
      }
      return 5;
    },
    onEffectivenessPriority: -1,
    onEffectiveness(typeMod, target, type, move) {
      if (move?.effectType === "Move" && move.category !== "Status" && type === "Flying" && typeMod > 0) {
        this.add("-fieldactivate", "Storm Surge");
        return 0;
      }
    },
    onWeatherModifyDamage(damage, attacker, defender, move) {
      if (defender.hasItem("utilityumbrella"))
        return;
      if (move.flags["wind"]) {
        this.debug("Storm Surge wind boost");
        return this.chainModify(1.2);
      }
      if (move.type === "Water") {
        this.debug("Storm Surge water boost");
        return this.chainModify(1.5);
      }
      if (move.type === "Fire") {
        this.debug("Storm Surge fire suppress");
        return this.chainModify(0.5);
      }
    },
    onAccuracy(accuracy, attacker, defender, move) {
      if (move?.flags["wind"] && !attacker.hasItem("utilityumbrella"))
        return true;
      return accuracy;
    },
    onFieldStart(battle, source, effect) {
      if (effect?.effectType === "Ability") {
        if (this.gen <= 5)
          this.effectState.duration = 0;
        this.add("-weather", "StormSurge", "[from] ability: " + effect.name, `[of] ${source}`);
      } else {
        this.add("-weather", "StormSurge");
      }
    },
    onImmunity(type, pokemon) {
      if (pokemon.hasItem("utilityumbrella"))
        return;
      if (type === "frz")
        return false;
    },
    onFieldResidualOrder: 1,
    onFieldResidual() {
      this.add("-weather", "StormSurge", "[upkeep]");
      this.eachEvent("Weather");
    },
    onFieldEnd() {
      this.add("-weather", "none");
    }
  },
  // kenn
  deserteddunes: {
    name: "DesertedDunes",
    effectType: "Weather",
    duration: 0,
    onEffectivenessPriority: -1,
    onEffectiveness(typeMod, target, type, move) {
      if (move?.effectType === "Move" && move.category !== "Status" && type === "Rock" && typeMod > 0) {
        this.add("-fieldactivate", "Deserted Dunes");
        return 0;
      }
    },
    onModifySpDPriority: 10,
    onModifySpD(spd, pokemon) {
      if (pokemon.hasType("Rock") && this.field.isWeather("deserteddunes")) {
        return this.modify(spd, 1.5);
      }
    },
    onFieldStart(field, source, effect) {
      this.add("-weather", "DesertedDunes", "[from] ability: " + effect.name, `[of] ${source}`);
    },
    onFieldResidualOrder: 1,
    onFieldResidual() {
      this.add("-weather", "DesertedDunes", "[upkeep]");
      this.eachEvent("Weather");
    },
    onWeather(target) {
      this.damage(target.baseMaxhp / 16);
    },
    onFieldEnd() {
      this.add("-weather", "none");
    }
  },
  // Neko
  catstampofapproval: {
    name: "Cat Stamp of Approval",
    noCopy: true,
    onStart(target) {
      this.add("-start", target, "Cat Stamp of Approval");
      this.effectState.bestStat = target.getBestStat(false, true);
    },
    onEnd(target) {
      this.add("-end", target, "Cat Stamp of Approval");
    },
    onModifyAtkPriority: 5,
    onModifyAtk(atk, pokemon) {
      if (this.effectState.bestStat !== "atk" || pokemon.ignoringAbility())
        return;
      this.debug("Cat Stamp of Approval atk boost");
      return this.chainModify([5325, 4096]);
    },
    onModifyDefPriority: 6,
    onModifyDef(def, pokemon) {
      if (this.effectState.bestStat !== "def" || pokemon.ignoringAbility())
        return;
      this.debug("Cat Stamp of Approval def boost");
      return this.chainModify([5325, 4096]);
    },
    onModifySpAPriority: 5,
    onModifySpA(spa, pokemon) {
      if (this.effectState.bestStat !== "spa" || pokemon.ignoringAbility())
        return;
      this.debug("Cat Stamp of Approval spa boost");
      return this.chainModify([5325, 4096]);
    },
    onModifySpDPriority: 6,
    onModifySpD(spd, pokemon) {
      if (this.effectState.bestStat !== "spd" || pokemon.ignoringAbility())
        return;
      this.debug("Cat Stamp of Approval spd boost");
      return this.chainModify([5325, 4096]);
    },
    onModifySpe(spe, pokemon) {
      if (this.effectState.bestStat !== "spe" || pokemon.ignoringAbility())
        return;
      this.debug("Cat Stamp of Approval spe boost");
      return this.chainModify(1.5);
    }
  },
  // Effects needed to be overriden for things to happen
  attract: {
    onStart(pokemon, source, effect) {
      if (!(pokemon.gender === "M" && source.gender === "F") && !(pokemon.gender === "F" && source.gender === "M")) {
        if (!["The Love Of Christ", ":3"].includes(effect.name)) {
          this.debug("incompatible gender");
          return false;
        }
      }
      if (!this.runEvent("Attract", pokemon, source)) {
        this.debug("Attract event failed");
        return false;
      }
      if (effect.name === "Cute Charm") {
        this.add("-start", pokemon, "Attract", "[from] ability: Cute Charm", `[of] ${source}`);
      } else if (effect.name === "Destiny Knot") {
        this.add("-start", pokemon, "Attract", "[from] item: Destiny Knot", `[of] ${source}`);
      } else {
        this.add("-start", pokemon, "Attract");
      }
    },
    onUpdate(pokemon) {
      if (this.effectState.source && !this.effectState.source.isActive && pokemon.volatiles["attract"]) {
        this.debug(`Removing Attract volatile on ${pokemon}`);
        pokemon.removeVolatile("attract");
      }
    },
    onBeforeMovePriority: 2,
    onBeforeMove(pokemon, target, move) {
      this.add("-activate", pokemon, "move: Attract", "[of] " + this.effectState.source);
      if (this.randomChance(1, 2)) {
        this.add("cant", pokemon, "Attract");
        return false;
      }
    },
    onEnd(pokemon) {
      this.add("-end", pokemon, "Attract", "[silent]");
    }
  },
  gravity: {
    duration: 5,
    durationCallback(source, effect) {
      if (source?.hasAbility("persistent")) {
        this.add("-activate", source, "ability: Persistent", "[move] Gravity");
        return 7;
      }
      return 5;
    },
    onFieldStart(target, source) {
      if (source?.hasAbility("persistent")) {
        this.add("-fieldstart", "move: Gravity", "[persistent]");
      } else {
        this.add("-fieldstart", "move: Gravity");
      }
      for (const pokemon of this.getAllActive()) {
        let applies = false;
        if (pokemon.removeVolatile("bounce") || pokemon.removeVolatile("fly")) {
          applies = true;
          this.queue.cancelMove(pokemon);
          pokemon.removeVolatile("twoturnmove");
        }
        if (pokemon.volatiles["skydrop"]) {
          applies = true;
          this.queue.cancelMove(pokemon);
          if (pokemon.volatiles["skydrop"].source) {
            this.add("-end", pokemon.volatiles["twoturnmove"].source, "Sky Drop", "[interrupt]");
          }
          pokemon.removeVolatile("skydrop");
          pokemon.removeVolatile("twoturnmove");
        }
        if (pokemon.volatiles["magnetrise"]) {
          applies = true;
          delete pokemon.volatiles["magnetrise"];
        }
        if (pokemon.volatiles["telekinesis"]) {
          applies = true;
          delete pokemon.volatiles["telekinesis"];
        }
        if (applies)
          this.add("-activate", pokemon, "move: Gravity");
      }
    },
    onModifyAccuracy(accuracy) {
      if (typeof accuracy !== "number")
        return;
      return this.chainModify([6840, 4096]);
    },
    onDisableMove(pokemon) {
      for (const moveSlot of pokemon.moveSlots) {
        if (this.dex.moves.get(moveSlot.id).flags["gravity"]) {
          pokemon.disableMove(moveSlot.id);
        }
      }
    },
    // groundedness implemented in battle.engine.js:BattlePokemon#isGrounded
    onBeforeMovePriority: 6,
    onBeforeMove(pokemon, target, move) {
      if (move.flags["gravity"] && !move.isZ) {
        this.add("cant", pokemon, "move: Gravity", move);
        return false;
      }
    },
    onModifyMove(move, pokemon, target) {
      if (move.flags["gravity"] && !move.isZ) {
        this.add("cant", pokemon, "move: Gravity", move);
        return false;
      }
    },
    onFieldResidualOrder: 27,
    onFieldResidualSubOrder: 2,
    onFieldEnd() {
      this.add("-fieldend", "move: Gravity");
      const activePokemon = this.getAllActive();
      for (const a of activePokemon) {
        if (a.name === "Lunell") {
          this.add(`c:|${(0, import_scripts.getName)("Lunell")}|ope there goes gravity`);
          break;
        }
      }
    }
  },
  raindance: {
    inherit: true,
    onWeatherModifyDamage(damage, attacker, defender, move) {
      if (defender.hasItem("utilityumbrella") || move.id === "geyserblast")
        return;
      if (move.type === "Water") {
        this.debug("rain water boost");
        return this.chainModify(1.5);
      }
      if (move.type === "Fire") {
        this.debug("rain fire suppress");
        return this.chainModify(0.5);
      }
    }
  },
  sunnyday: {
    inherit: true,
    onWeatherModifyDamage(damage, attacker, defender, move) {
      if (defender.hasItem("utilityumbrella") || move.id === "geyserblast")
        return;
      if (move.type === "Fire") {
        this.debug("Sunny Day fire boost");
        return this.chainModify(1.5);
      }
      if (move.type === "Water" && move.id !== "hydrosteam") {
        this.debug("Sunny Day water suppress");
        return this.chainModify(0.5);
      }
    }
  },
  confusion: {
    inherit: true,
    onBeforeMove(pokemon) {
      pokemon.volatiles["confusion"].time--;
      if (!pokemon.volatiles["confusion"].time) {
        pokemon.removeVolatile("confusion");
        return;
      }
      this.add("-activate", pokemon, "confusion");
      if (!this.randomChance(33, 100)) {
        return;
      }
      this.activeTarget = pokemon;
      const damage = this.actions.getConfusionDamage(pokemon, 40);
      if (typeof damage !== "number")
        throw new Error("Confusion damage not dealt");
      const activeMove = { id: this.toID("confused"), effectType: "Move", type: "???" };
      this.damage(damage, pokemon, pokemon, activeMove);
      if (this.effectState.sourceEffect?.id === "cringedadjoke") {
        for (const target of this.getAllActive()) {
          if (target === pokemon)
            continue;
          if (target.volatiles["cringedadjoke"]) {
            this.boost({ atk: 1, def: 1 }, target);
          }
        }
      }
      return false;
    }
  }
};
//# sourceMappingURL=conditions.js.map