File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -130,8 +130,7 @@ export function calculateSMSS(
130
130
const isCritical = ! defender . hasAbility ( 'Battle Armor' , 'Shell Armor' ) &&
131
131
( move . isCrit || ( attacker . hasAbility ( 'Merciless' ) && defender . hasStatus ( 'psn' , 'tox' ) ) ) &&
132
132
move . timesUsed === 1 ;
133
-
134
- if ( move . named ( 'Weather Ball' ) ) {
133
+ if ( move . named ( 'Weather Ball' ) || move . originalName === 'Weather Ball' ) {
135
134
const holdingUmbrella = attacker . hasItem ( 'Utility Umbrella' ) ;
136
135
move . type =
137
136
field . hasWeather ( 'Sun' , 'Harsh Sunshine' ) && ! holdingUmbrella ? 'Fire'
@@ -154,7 +153,8 @@ export function calculateSMSS(
154
153
desc . attackerItem = attacker . item ;
155
154
desc . moveBP = move . bp ;
156
155
desc . moveType = move . type ;
157
- } else if ( move . named ( 'Nature Power' ) || ( move . named ( 'Terrain Pulse' ) && isGrounded ( attacker , field ) ) ) {
156
+ } else if ( move . named ( 'Nature Power' ) || move . originalName === 'Nature Power' ||
157
+ ( ( move . named ( 'Terrain Pulse' ) || move . originalName === 'Terrain Pulse' ) && isGrounded ( attacker , field ) ) ) {
158
158
move . type =
159
159
field . hasTerrain ( 'Electric' ) ? 'Electric'
160
160
: field . hasTerrain ( 'Grassy' ) ? 'Grass'
You can’t perform that action at this time.
0 commit comments