@@ -21,34 +21,17 @@ describe('Dancer', () => {
21
21
assert . statStage ( battle . p2 . active [ 0 ] , 'atk' , 3 ) ;
22
22
} ) ;
23
23
24
- it ( 'should activate in order of lowest to highest raw speed ' , ( ) => {
24
+ it ( 'should activate in order of fastest to slowest ' , ( ) => {
25
25
battle = common . createBattle ( { gameType : 'doubles' } , [ [
26
- { species : 'Shedinja' , level : 98 , ability : 'dancer' , item : 'focussash' , moves : [ 'sleeptalk' ] } ,
26
+ { species : 'Shedinja' , ability : 'dancer' , item : 'focussash' , moves : [ 'sleeptalk' ] } ,
27
27
{ species : 'Shedinja' , level : 99 , ability : 'dancer' , moves : [ 'sleeptalk' ] } ,
28
28
] , [
29
29
{ species : 'Shedinja' , ability : 'wonderguard' , moves : [ 'fierydance' ] } ,
30
- { species : 'Shedinja' , ability : 'dancer' , moves : [ 'sleeptalk' ] } ,
31
- ] ] ) ;
32
- const [ , fastDancer ] = battle . p1 . active ;
33
- const [ wwDanceSource , foeDancer ] = battle . p2 . active ;
34
- fastDancer . boostBy ( { spe : 6 } ) ;
35
- battle . makeChoices ( 'move sleeptalk, move sleeptalk' , 'move fierydance 1, move sleeptalk' ) ;
36
- assert . fainted ( wwDanceSource ) ;
37
- assert . fainted ( foeDancer ) ;
38
- } ) ;
39
-
40
- it ( 'should activate in order of lowest to highest raw speed inside Trick Room' , ( ) => {
41
- battle = common . createBattle ( { gameType : 'doubles' } , [ [
42
- { species : 'Shedinja' , level : 98 , ability : 'dancer' , item : 'focussash' , moves : [ 'sleeptalk' ] } ,
43
- { species : 'Shedinja' , level : 99 , ability : 'dancer' , moves : [ 'sleeptalk' ] } ,
44
- ] , [
45
- { species : 'Shedinja' , ability : 'wonderguard' , moves : [ 'fierydance' , 'trickroom' ] } ,
46
- { species : 'Shedinja' , ability : 'dancer' , moves : [ 'sleeptalk' ] } ,
30
+ { species : 'Shedinja' , level : 98 , ability : 'dancer' , moves : [ 'sleeptalk' ] } ,
47
31
] ] ) ;
48
32
const [ , fastDancer ] = battle . p1 . active ;
49
33
const [ wwDanceSource , foeDancer ] = battle . p2 . active ;
50
34
fastDancer . boostBy ( { spe : 6 } ) ;
51
- battle . makeChoices ( 'move sleeptalk, move sleeptalk' , 'move trickroom, move sleeptalk' ) ;
52
35
battle . makeChoices ( 'move sleeptalk, move sleeptalk' , 'move fierydance 1, move sleeptalk' ) ;
53
36
assert . fainted ( wwDanceSource ) ;
54
37
assert . fainted ( foeDancer ) ;
@@ -199,3 +182,42 @@ describe('Dancer', () => {
199
182
assert . notEqual ( suicune . hp , suicune . fullHP ) ;
200
183
} ) ;
201
184
} ) ;
185
+
186
+ describe ( '[Gen 7] Dancer' , ( ) => {
187
+ afterEach ( ( ) => {
188
+ battle . destroy ( ) ;
189
+ } ) ;
190
+
191
+ it ( 'should activate in order of lowest to highest raw speed' , ( ) => {
192
+ battle = common . gen ( 7 ) . createBattle ( { gameType : 'doubles' } , [ [
193
+ { species : 'Shedinja' , level : 98 , ability : 'dancer' , item : 'focussash' , moves : [ 'sleeptalk' ] } ,
194
+ { species : 'Shedinja' , level : 99 , ability : 'dancer' , moves : [ 'sleeptalk' ] } ,
195
+ ] , [
196
+ { species : 'Shedinja' , ability : 'wonderguard' , moves : [ 'fierydance' ] } ,
197
+ { species : 'Shedinja' , ability : 'dancer' , moves : [ 'sleeptalk' ] } ,
198
+ ] ] ) ;
199
+ const [ , fastDancer ] = battle . p1 . active ;
200
+ const [ wwDanceSource , foeDancer ] = battle . p2 . active ;
201
+ fastDancer . boostBy ( { spe : 6 } ) ;
202
+ battle . makeChoices ( 'move sleeptalk, move sleeptalk' , 'move fierydance 1, move sleeptalk' ) ;
203
+ assert . fainted ( wwDanceSource ) ;
204
+ assert . fainted ( foeDancer ) ;
205
+ } ) ;
206
+
207
+ it ( 'should activate in order of lowest to highest raw speed inside Trick Room' , ( ) => {
208
+ battle = common . gen ( 7 ) . createBattle ( { gameType : 'doubles' } , [ [
209
+ { species : 'Shedinja' , level : 98 , ability : 'dancer' , item : 'focussash' , moves : [ 'sleeptalk' ] } ,
210
+ { species : 'Shedinja' , level : 99 , ability : 'dancer' , moves : [ 'sleeptalk' ] } ,
211
+ ] , [
212
+ { species : 'Shedinja' , ability : 'wonderguard' , moves : [ 'fierydance' , 'trickroom' ] } ,
213
+ { species : 'Shedinja' , ability : 'dancer' , moves : [ 'sleeptalk' ] } ,
214
+ ] ] ) ;
215
+ const [ , fastDancer ] = battle . p1 . active ;
216
+ const [ wwDanceSource , foeDancer ] = battle . p2 . active ;
217
+ fastDancer . boostBy ( { spe : 6 } ) ;
218
+ battle . makeChoices ( 'move sleeptalk, move sleeptalk' , 'move trickroom, move sleeptalk' ) ;
219
+ battle . makeChoices ( 'move sleeptalk, move sleeptalk' , 'move fierydance 1, move sleeptalk' ) ;
220
+ assert . fainted ( wwDanceSource ) ;
221
+ assert . fainted ( foeDancer ) ;
222
+ } ) ;
223
+ } ) ;
0 commit comments