-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmoves.js
19079 lines (19062 loc) · 656 KB
/
moves.js
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
'use strict';
exports.BattleMovedex = {
"10000000voltthunderbolt": {
num: 719,
accuracy: true,
basePower: 195,
category: "Special",
desc: "Has a very high chance for a critical hit.",
shortDesc: "Very high critical hit ratio.",
id: "10000000voltthunderbolt",
name: "10,000,000 Volt Thunderbolt",
pp: 1,
priority: 0,
flags: {},
isZ: "pikashuniumz",
critRatio: 3,
secondary: false,
target: "normal",
type: "Electric",
contestType: "Cool",
},
"absorb": {
num: 71,
accuracy: 100,
basePower: 20,
category: "Special",
desc: "The user recovers 1/2 the HP lost by the target, rounded half up. If Big Root is held by the user, the HP recovered is 1.3x normal, rounded half down.",
shortDesc: "User recovers 50% of the damage dealt.",
id: "absorb",
name: "Absorb",
pp: 25,
priority: 0,
flags: { protect: 1, mirror: 1, heal: 1 },
drain: [1, 2],
secondary: false,
target: "normal",
type: "Grass",
zMovePower: 100,
contestType: "Clever",
},
"accelerock": {
num: 709,
accuracy: 100,
basePower: 40,
category: "Physical",
desc: "No additional effect.",
shortDesc: "Usually goes first.",
id: "accelerock",
isViable: true,
name: "Accelerock",
pp: 20,
priority: 1,
flags: { contact: 1, protect: 1, mirror: 1 },
secondary: false,
target: "normal",
type: "Rock",
zMovePower: 100,
contestType: "Cool",
},
"acid": {
num: 51,
accuracy: 100,
basePower: 40,
category: "Special",
desc: "Has a 10% chance to lower the target's Special Defense by 1 stage.",
shortDesc: "10% chance to lower the foe(s) Sp. Def by 1.",
id: "acid",
name: "Acid",
pp: 30,
priority: 0,
flags: { protect: 1, mirror: 1 },
secondary: {
chance: 10,
boosts: {
spd: -1,
},
},
target: "allAdjacentFoes",
type: "Poison",
zMovePower: 100,
contestType: "Clever",
},
"acidarmor": {
num: 151,
accuracy: true,
basePower: 0,
category: "Status",
desc: "Raises the user's Defense by 2 stages.",
shortDesc: "Raises the user's Defense by 2.",
id: "acidarmor",
name: "Acid Armor",
pp: 20,
priority: 0,
flags: { snatch: 1 },
boosts: {
def: 2,
},
secondary: false,
target: "self",
type: "Poison",
zMoveEffect: 'clearnegativeboost',
contestType: "Tough",
},
"aciddownpour": {
num: 628,
accuracy: true,
basePower: 1,
category: "Physical",
shortDesc: "Power is equal to the base move's Z-Power.",
id: "aciddownpour",
isViable: true,
name: "Acid Downpour",
pp: 1,
priority: 0,
flags: {},
isZ: "poisoniumz",
secondary: false,
target: "normal",
type: "Poison",
contestType: "Cool",
},
"acidspray": {
num: 491,
accuracy: 100,
basePower: 40,
category: "Special",
desc: "Has a 100% chance to lower the target's Special Defense by 2 stages.",
shortDesc: "100% chance to lower the target's Sp. Def by 2.",
id: "acidspray",
isViable: true,
name: "Acid Spray",
pp: 20,
priority: 0,
flags: { bullet: 1, protect: 1, mirror: 1 },
secondary: {
chance: 100,
boosts: {
spd: -2,
},
},
target: "normal",
type: "Poison",
zMovePower: 100,
contestType: "Beautiful",
},
"acrobatics": {
num: 512,
accuracy: 100,
basePower: 55,
basePowerCallback: function(pokemon, target, move) {
if (!pokemon.item) {
this.debug("Power doubled for no item");
return move.basePower * 2;
}
return move.basePower;
},
category: "Physical",
desc: "Power doubles if the user has no held item.",
shortDesc: "Power doubles if the user has no held item.",
id: "acrobatics",
isViable: true,
name: "Acrobatics",
pp: 15,
priority: 0,
flags: { contact: 1, protect: 1, mirror: 1, distance: 1 },
secondary: false,
target: "any",
type: "Flying",
zMovePower: 100,
contestType: "Cool",
},
"acupressure": {
num: 367,
accuracy: true,
basePower: 0,
category: "Status",
desc: "Raises a random stat by 2 stages as long as the stat is not already at stage 6. The user can choose to use this move on itself or an adjacent ally. Fails if no stat stage can be raised or if used on an ally with a substitute.",
shortDesc: "Raises a random stat of the user or an ally by 2.",
id: "acupressure",
name: "Acupressure",
pp: 30,
priority: 0,
flags: {},
onHit: function(target) {
let stats = [];
for (let stat in target.boosts) {
if (target.boosts[stat] < 6) {
stats.push(stat);
}
}
if (stats.length) {
let randomStat = stats[this.random(stats.length)];
let boost = {};
boost[randomStat] = 2;
this.boost(boost);
} else {
return false;
}
},
secondary: false,
target: "adjacentAllyOrSelf",
type: "Normal",
zMoveEffect: 'crit2',
contestType: "Tough",
},
"aerialace": {
num: 332,
accuracy: true,
basePower: 60,
category: "Physical",
desc: "This move does not check accuracy.",
shortDesc: "This move does not check accuracy.",
id: "aerialace",
isViable: true,
name: "Aerial Ace",
pp: 20,
priority: 0,
flags: { contact: 1, protect: 1, mirror: 1, distance: 1 },
secondary: false,
target: "any",
type: "Flying",
zMovePower: 120,
contestType: "Cool",
},
"aeroblast": {
num: 177,
accuracy: 95,
basePower: 100,
category: "Special",
desc: "Has a higher chance for a critical hit.",
shortDesc: "High critical hit ratio.",
id: "aeroblast",
isViable: true,
name: "Aeroblast",
pp: 5,
priority: 0,
flags: { protect: 1, mirror: 1, distance: 1 },
critRatio: 2,
secondary: false,
target: "any",
type: "Flying",
zMovePower: 180,
contestType: "Cool",
},
"afteryou": {
num: 495,
accuracy: true,
basePower: 0,
category: "Status",
desc: "The target makes its move immediately after the user this turn, no matter the priority of its selected move. Fails if the target would have moved next anyway, or if the target already moved this turn.",
shortDesc: "The target makes its move right after the user.",
id: "afteryou",
name: "After You",
pp: 15,
priority: 0,
flags: { authentic: 1, mystery: 1 },
onHit: function(target) {
if (target.side.active.length < 2) return false; // fails in singles
let decision = this.willMove(target);
if (decision) {
this.cancelMove(target);
this.queue.unshift(decision);
this.add('-activate', target, 'move: After You');
} else {
return false;
}
},
secondary: false,
target: "normal",
type: "Normal",
zMoveBoost: { spe: 1 },
contestType: "Cute",
},
"agility": {
num: 97,
accuracy: true,
basePower: 0,
category: "Status",
desc: "Raises the user's Speed by 2 stages.",
shortDesc: "Raises the user's Speed by 2.",
id: "agility",
isViable: true,
name: "Agility",
pp: 30,
priority: 0,
flags: { snatch: 1 },
boosts: {
spe: 2,
},
secondary: false,
target: "self",
type: "Psychic",
zMoveEffect: 'clearnegativeboost',
contestType: "Cool",
},
"aircutter": {
num: 314,
accuracy: 95,
basePower: 60,
category: "Special",
desc: "Has a higher chance for a critical hit.",
shortDesc: "High critical hit ratio. Hits adjacent foes.",
id: "aircutter",
name: "Air Cutter",
pp: 25,
priority: 0,
flags: { protect: 1, mirror: 1 },
critRatio: 2,
secondary: false,
target: "allAdjacentFoes",
type: "Flying",
zMovePower: 120,
contestType: "Cool",
},
"airslash": {
num: 403,
accuracy: 95,
basePower: 75,
category: "Special",
desc: "Has a 30% chance to flinch the target.",
shortDesc: "30% chance to flinch the target.",
id: "airslash",
isViable: true,
name: "Air Slash",
pp: 15,
priority: 0,
flags: { protect: 1, mirror: 1, distance: 1 },
secondary: {
chance: 30,
volatileStatus: 'flinch',
},
target: "any",
type: "Flying",
zMovePower: 140,
contestType: "Cool",
},
"alloutpummeling": {
num: 624,
accuracy: true,
basePower: 1,
category: "Physical",
shortDesc: "Power is equal to the base move's Z-Power.",
id: "alloutpummeling",
isViable: true,
name: "All-Out Pummeling",
pp: 1,
priority: 0,
flags: {},
isZ: "fightiniumz",
secondary: false,
target: "normal",
type: "Fighting",
contestType: "Cool",
},
"allyswitch": {
num: 502,
accuracy: true,
basePower: 0,
category: "Status",
desc: "The user swaps positions with its ally. Fails if the user is the only Pokemon on its side.",
shortDesc: "The user swaps positions with its ally.",
id: "allyswitch",
name: "Ally Switch",
pp: 15,
priority: 2,
flags: {},
onTryHit: function(source) {
if (source.side.active.length === 1) return false;
if (source.side.active.length === 3 && source.position === 1) return false;
},
onHit: function(pokemon) {
let newPosition = (pokemon.position === 0 ? pokemon.side.active.length - 1 : 0);
if (!pokemon.side.active[newPosition]) return false;
if (pokemon.side.active[newPosition].fainted) return false;
this.swapPosition(pokemon, newPosition, '[from] move: Ally Switch');
},
secondary: false,
target: "self",
type: "Psychic",
zMoveBoost: { spe: 2 },
contestType: "Clever",
},
"amnesia": {
num: 133,
accuracy: true,
basePower: 0,
category: "Status",
desc: "Raises the user's Special Defense by 2 stages.",
shortDesc: "Raises the user's Sp. Def by 2.",
id: "amnesia",
name: "Amnesia",
pp: 20,
priority: 0,
flags: { snatch: 1 },
boosts: {
spd: 2,
},
secondary: false,
target: "self",
type: "Psychic",
zMoveEffect: 'clearnegativeboost',
contestType: "Cute",
},
"anchorshot": {
num: 677,
accuracy: 100,
basePower: 80,
category: "Physical",
desc: "Prevents the target from switching out. The target can still switch out if it is holding Shed Shell or uses Baton Pass, Parting Shot, U-turn, or Volt Switch. If the target leaves the field using Baton Pass, the replacement will remain trapped. The effect ends if the user leaves the field.",
shortDesc: "Prevents the target from switching out.",
id: "anchorshot",
isViable: true,
name: "Anchor Shot",
pp: 20,
priority: 0,
flags: { contact: 1, protect: 1, mirror: 1 },
onHit: function(target, source, move) {
if (source.isActive) target.addVolatile('trapped', source, move, 'trapper');
},
secondary: false,
target: "normal",
type: "Steel",
zMovePower: 160,
contestType: "Tough",
},
"ancientpower": {
num: 246,
accuracy: 100,
basePower: 60,
category: "Special",
desc: "Has a 10% chance to raise the user's Attack, Defense, Special Attack, Special Defense, and Speed by 1 stage.",
shortDesc: "10% chance to raise all stats by 1 (not acc/eva).",
id: "ancientpower",
isViable: true,
name: "Ancient Power",
pp: 5,
priority: 0,
flags: { protect: 1, mirror: 1 },
secondary: {
chance: 10,
self: {
boosts: {
atk: 1,
def: 1,
spa: 1,
spd: 1,
spe: 1,
},
},
},
target: "normal",
type: "Rock",
zMovePower: 120,
contestType: "Tough",
},
"aquajet": {
num: 453,
accuracy: 100,
basePower: 40,
category: "Physical",
desc: "No additional effect.",
shortDesc: "Usually goes first.",
id: "aquajet",
isViable: true,
name: "Aqua Jet",
pp: 20,
priority: 1,
flags: { contact: 1, protect: 1, mirror: 1 },
secondary: false,
target: "normal",
type: "Water",
zMovePower: 100,
contestType: "Cool",
},
"aquaring": {
num: 392,
accuracy: true,
basePower: 0,
category: "Status",
desc: "The user has 1/16 of its maximum HP, rounded down, restored at the end of each turn while it remains active. If the user uses Baton Pass, the replacement will receive the healing effect.",
shortDesc: "User recovers 1/16 max HP per turn.",
id: "aquaring",
name: "Aqua Ring",
pp: 20,
priority: 0,
flags: { snatch: 1 },
volatileStatus: 'aquaring',
effect: {
onStart: function(pokemon) {
this.add('-start', pokemon, 'Aqua Ring');
},
onResidualOrder: 6,
onResidual: function(pokemon) {
this.heal(pokemon.maxhp / 16);
},
},
secondary: false,
target: "self",
type: "Water",
zMoveBoost: { def: 1 },
contestType: "Beautiful",
},
"aquatail": {
num: 401,
accuracy: 90,
basePower: 90,
category: "Physical",
desc: "No additional effect.",
shortDesc: "No additional effect.",
id: "aquatail",
isViable: true,
name: "Aqua Tail",
pp: 10,
priority: 0,
flags: { contact: 1, protect: 1, mirror: 1 },
secondary: false,
target: "normal",
type: "Water",
zMovePower: 175,
contestType: "Beautiful",
},
"armthrust": {
num: 292,
accuracy: 100,
basePower: 15,
category: "Physical",
desc: "Hits two to five times. Has a 1/3 chance to hit two or three times, and a 1/6 chance to hit four or five times. If one of the hits breaks the target's substitute, it will take damage for the remaining hits. If the user has the Ability Skill Link, this move will always hit five times.",
shortDesc: "Hits 2-5 times in one turn.",
id: "armthrust",
name: "Arm Thrust",
pp: 20,
priority: 0,
flags: { contact: 1, protect: 1, mirror: 1 },
multihit: [2, 5],
secondary: false,
target: "normal",
type: "Fighting",
zMovePower: 100,
contestType: "Tough",
},
"aromatherapy": {
num: 312,
accuracy: true,
basePower: 0,
category: "Status",
desc: "Every Pokemon in the user's party is cured of its major status condition. Active Pokemon with the Ability Sap Sipper are not cured, unless they are the user.",
shortDesc: "Cures the user's party of all status conditions.",
id: "aromatherapy",
isViable: true,
name: "Aromatherapy",
pp: 5,
priority: 0,
flags: { snatch: 1, distance: 1 },
onHit: function(pokemon, source, move) {
this.add('-activate', source, 'move: Aromatherapy');
let side = pokemon.side;
for (let i = 0; i < side.pokemon.length; i++) {
if (side.pokemon[i] !== source && ((side.pokemon[i].hasAbility('sapsipper')) ||
(side.pokemon[i].volatiles['substitute'] && !move.infiltrates))) {
continue;
}
side.pokemon[i].cureStatus();
}
},
target: "allyTeam",
type: "Grass",
zMoveEffect: 'heal',
contestType: "Clever",
},
"aromaticmist": {
num: 597,
accuracy: true,
basePower: 0,
category: "Status",
desc: "Raises the target's Special Defense by 1 stage. Fails if there is no ally adjacent to the user.",
shortDesc: "Raises an ally's Sp. Def by 1.",
id: "aromaticmist",
name: "Aromatic Mist",
pp: 20,
priority: 0,
flags: { authentic: 1 },
boosts: {
spd: 1,
},
secondary: false,
target: "adjacentAlly",
type: "Fairy",
zMoveBoost: { spd: 2 },
contestType: "Beautiful",
},
"assist": {
num: 274,
accuracy: true,
basePower: 0,
category: "Status",
desc: "A random move among those known by the user's party members is selected for use. Does not select Assist, Belch, Bestow, Bounce, Chatter, Circle Throw, Copycat, Counter, Covet, Destiny Bond, Detect, Dig, Dive, Dragon Tail, Endure, Feint, Fly, Focus Punch, Follow Me, Helping Hand, Hold Hands, King's Shield, Mat Block, Me First, Metronome, Mimic, Mirror Coat, Mirror Move, Nature Power, Phantom Force, Protect, Rage Powder, Roar, Shadow Force, Sketch, Sky Drop, Sleep Talk, Snatch, Spiky Shield, Struggle, Switcheroo, Thief, Transform, Trick, or Whirlwind.",
shortDesc: "Uses a random move known by a team member.",
id: "assist",
name: "Assist",
pp: 20,
priority: 0,
flags: {},
onHit: function(target) {
let moves = [];
for (let j = 0; j < target.side.pokemon.length; j++) {
let pokemon = target.side.pokemon[j];
if (pokemon === target) continue;
for (let i = 0; i < pokemon.moveset.length; i++) {
let move = pokemon.moveset[i].id;
let noAssist = {
assist: 1,
belch: 1,
bestow: 1,
bounce: 1,
chatter: 1,
circlethrow: 1,
copycat: 1,
counter: 1,
covet: 1,
destinybond: 1,
detect: 1,
dig: 1,
dive: 1,
dragontail: 1,
endure: 1,
feint: 1,
fly: 1,
focuspunch: 1,
followme: 1,
helpinghand: 1,
kingsshield: 1,
matblock: 1,
mefirst: 1,
metronome: 1,
mimic: 1,
mirrorcoat: 1,
mirrormove: 1,
naturepower: 1,
phantomforce: 1,
protect: 1,
ragepowder: 1,
roar: 1,
shadowforce: 1,
sketch: 1,
skydrop: 1,
sleeptalk: 1,
snatch: 1,
spikyshield: 1,
struggle: 1,
switcheroo: 1,
thief: 1,
transform: 1,
trick: 1,
whirlwind: 1,
};
if (!noAssist[move] && !this.getMove(move).isZ) {
moves.push(move);
}
}
}
let randomMove = '';
if (moves.length) randomMove = moves[this.random(moves.length)];
if (!randomMove) {
return false;
}
this.useMove(randomMove, target);
},
secondary: false,
target: "self",
type: "Normal",
contestType: "Cute",
},
"assurance": {
num: 372,
accuracy: 100,
basePower: 60,
basePowerCallback: function(pokemon, target, move) {
if (pokemon.volatiles.assurance && pokemon.volatiles.assurance.hurt) {
this.debug('Boosted for being damaged this turn');
return move.basePower * 2;
}
return move.basePower;
},
category: "Physical",
desc: "Power doubles if the target has already taken damage this turn, other than direct damage from Belly Drum, confusion, Curse, or Pain Split.",
shortDesc: "Power doubles if target was damaged this turn.",
id: "assurance",
name: "Assurance",
pp: 10,
priority: 0,
flags: { contact: 1, protect: 1, mirror: 1 },
beforeTurnCallback: function(pokemon, target) {
pokemon.addVolatile('assurance');
pokemon.volatiles.assurance.position = target.position;
},
effect: {
duration: 1,
onFoeAfterDamage: function(damage, target) {
if (target.position === this.effectData.position) {
this.debug('damaged this turn');
this.effectData.hurt = true;
}
},
onFoeSwitchOut: function(pokemon) {
if (pokemon.position === this.effectData.position) {
this.effectData.hurt = false;
}
},
},
secondary: false,
target: "normal",
type: "Dark",
zMovePower: 120,
contestType: "Clever",
},
"astonish": {
num: 310,
accuracy: 100,
basePower: 30,
category: "Physical",
desc: "Has a 30% chance to flinch the target.",
shortDesc: "30% chance to flinch the target.",
id: "astonish",
name: "Astonish",
pp: 15,
priority: 0,
flags: { contact: 1, protect: 1, mirror: 1 },
secondary: {
chance: 30,
volatileStatus: 'flinch',
},
target: "normal",
type: "Ghost",
zMovePower: 100,
contestType: "Cute",
},
"attackorder": {
num: 454,
accuracy: 100,
basePower: 90,
category: "Physical",
desc: "Has a higher chance for a critical hit.",
shortDesc: "High critical hit ratio.",
id: "attackorder",
isViable: true,
name: "Attack Order",
pp: 15,
priority: 0,
flags: { protect: 1, mirror: 1 },
critRatio: 2,
secondary: false,
target: "normal",
type: "Bug",
zMovePower: 175,
contestType: "Clever",
},
"attract": {
num: 213,
accuracy: 100,
basePower: 0,
category: "Status",
desc: "Causes the target to become infatuated, making it unable to attack 50% of the time. Fails if both the user and the target are the same gender, if either is genderless, or if the target is already infatuated. The effect ends when either the user or the target is no longer active. Pokemon with the Ability Oblivious or protected by the Ability Aroma Veil are immune.",
shortDesc: "A target of the opposite gender gets infatuated.",
id: "attract",
name: "Attract",
pp: 15,
priority: 0,
flags: { protect: 1, reflectable: 1, mirror: 1, authentic: 1 },
volatileStatus: 'attract',
effect: {
noCopy: true, // doesn't get copied by Baton Pass
onStart: function(pokemon, source, effect) {
if (!(pokemon.gender === 'M' && source.gender === 'F') && !(pokemon.gender === 'F' && source.gender === 'M')) {
this.debug('incompatible gender');
return false;
}
if (!this.runEvent('Attract', pokemon, source)) {
this.debug('Attract event failed');
return false;
}
if (effect.id === 'cutecharm') {
this.add('-start', pokemon, 'Attract', '[from] ability: Cute Charm', '[of] ' + source);
} else if (effect.id === 'destinyknot') {
this.add('-start', pokemon, 'Attract', '[from] item: Destiny Knot', '[of] ' + source);
} else {
this.add('-start', pokemon, 'Attract');
}
},
onUpdate: function(pokemon) {
if (this.effectData.source && !this.effectData.source.isActive && pokemon.volatiles['attract']) {
this.debug('Removing Attract volatile on ' + pokemon);
pokemon.removeVolatile('attract');
}
},
onBeforeMovePriority: 2,
onBeforeMove: function(pokemon, target, move) {
this.add('-activate', pokemon, 'move: Attract', '[of] ' + this.effectData.source);
if (this.random(2) === 0) {
this.add('cant', pokemon, 'Attract');
return false;
}
},
onEnd: function(pokemon) {
this.add('-end', pokemon, 'Attract', '[silent]');
},
},
secondary: false,
target: "normal",
type: "Normal",
zMoveEffect: 'clearnegativeboost',
contestType: "Cute",
},
"aurasphere": {
num: 396,
accuracy: true,
basePower: 80,
category: "Special",
desc: "This move does not check accuracy.",
shortDesc: "This move does not check accuracy.",
id: "aurasphere",
isViable: true,
name: "Aura Sphere",
pp: 20,
priority: 0,
flags: { bullet: 1, protect: 1, pulse: 1, mirror: 1, distance: 1 },
secondary: false,
target: "any",
type: "Fighting",
zMovePower: 160,
contestType: "Beautiful",
},
"aurorabeam": {
num: 62,
accuracy: 100,
basePower: 65,
category: "Special",
desc: "Has a 10% chance to lower the target's Attack by 1 stage.",
shortDesc: "10% chance to lower the foe's Attack by 1.",
id: "aurorabeam",
name: "Aurora Beam",
pp: 20,
priority: 0,
flags: { protect: 1, mirror: 1 },
secondary: {
chance: 10,
boosts: {
atk: -1,
},
},
target: "normal",
type: "Ice",
zMovePower: 120,
contestType: "Beautiful",
},
"auroraveil": {
num: 694,
accuracy: true,
basePower: 0,
category: "Status",
desc: "For 5 turns, the user and its party members take 0.5x damage from physical and special attacks, or 0.66x damage if in a Double Battle. Critical hits ignore this protection. It is removed from the user's side if the user or an ally is successfully hit by Brick Break, Psychic Fangs, or Defog. Lasts for 8 turns if the user is holding Light Clay. Fails unless the weather is Hail.",
shortDesc: "For 5 turns, damage to allies is halved. Hail only.",
id: "auroraveil",
name: "Aurora Veil",
pp: 20,
priority: 0,
flags: { snatch: 1 },
sideCondition: 'auroraveil',
onTryHitSide: function() {
if (!this.isWeather('hail')) return false;
},
effect: {
duration: 5,
durationCallback: function(target, source, effect) {
if (source && source.hasItem('lightclay')) {
return 8;
}
return 5;
},
onAnyModifyDamage: function(damage, source, target, move) {
if (target !== source && target.side === this.effectData.target) {
if (!move.crit && !move.infiltrates) {
this.debug('Aurora Veil weaken');
if (target.side.active.length > 1) return this.chainModify([0xAAC, 0x1000]);
return this.chainModify(0.5);
}
}
},
onStart: function(side) {
this.add('-sidestart', side, 'move: Aurora Veil');
},
onResidualOrder: 21,
onResidualSubOrder: 1,
onEnd: function(side) {
this.add('-sideend', side, 'move: Aurora Veil');
},
},
secondary: false,
target: "allySide",
type: "Ice",
zMoveBoost: { spe: 1 },
contestType: "Beautiful",
},
"autotomize": {
num: 475,
accuracy: true,
basePower: 0,
category: "Status",
desc: "Raises the user's Speed by 2 stages. If the user's Speed was changed, the user's weight is reduced by 100kg as long as it remains active. This effect is stackable but cannot reduce the user's weight to less than 0.1kg.",
shortDesc: "Raises the user's Speed by 2; user loses 100 kg.",
id: "autotomize",
isViable: true,
name: "Autotomize",
pp: 15,
priority: 0,
flags: { snatch: 1 },
onTryHit: function(pokemon) {
let hasContrary = pokemon.hasAbility('contrary');
if ((!hasContrary && pokemon.boosts.spe === 6) || (hasContrary && pokemon.boosts.spe === -6)) {
return false;
}
},
boosts: {
spe: 2,
},
volatileStatus: 'autotomize',
effect: {
noCopy: true, // doesn't get copied by Baton Pass
onStart: function(pokemon) {
if (pokemon.template.weightkg > 0.1) {
this.effectData.multiplier = 1;
this.add('-start', pokemon, 'Autotomize');
}
},
onRestart: function(pokemon) {
if (pokemon.template.weightkg - (this.effectData.multiplier * 100) > 0.1) {
this.effectData.multiplier++;
this.add('-start', pokemon, 'Autotomize');
}
},
onModifyWeightPriority: 1,
onModifyWeight: function(weight, pokemon) {
if (this.effectData.multiplier) {
weight -= this.effectData.multiplier * 100;
if (weight < 0.1) weight = 0.1;
return weight;
}
},
},
secondary: false,
target: "self",
type: "Steel",
zMoveEffect: 'clearnegativeboost',
contestType: "Beautiful",
},
"avalanche": {
num: 419,
accuracy: 100,
basePower: 60,
basePowerCallback: function(pokemon, target, move) {
if (target.lastDamage > 0 && pokemon.lastAttackedBy && pokemon.lastAttackedBy.thisTurn && pokemon.lastAttackedBy.pokemon === target) {
this.debug('Boosted for getting hit by ' + pokemon.lastAttackedBy.move);
return move.basePower * 2;
}
return move.basePower;
},
category: "Physical",
desc: "Power doubles if the user was hit by the target this turn.",
shortDesc: "Power doubles if user is damaged by the target.",
id: "avalanche",
isViable: true,
name: "Avalanche",
pp: 10,
priority: -4,
flags: { contact: 1, protect: 1, mirror: 1 },
secondary: false,
target: "normal",
type: "Ice",
zMovePower: 120,
contestType: "Beautiful",
},
"babydolleyes": {
num: 608,
accuracy: 100,
basePower: 0,
category: "Status",
desc: "Lowers the target's Attack by 1 stage.",
shortDesc: "Lowers the target's Attack by 1.",
id: "babydolleyes",
name: "Baby-Doll Eyes",
pp: 30,
priority: 1,
flags: { protect: 1, reflectable: 1, mirror: 1, mystery: 1 },
boosts: {
atk: -1,
},
secondary: false,
target: "normal",
type: "Fairy",