@@ -803,8 +803,8 @@ export const Formats: import('../sim/dex-formats').FormatList = [
803
803
let format = this . format ;
804
804
if ( ! format . getSharedPower ) format = this . dex . formats . get ( 'gen9sharedpower' ) ;
805
805
for ( const ability of format . getSharedPower ! ( pokemon ) ) {
806
- const effect = 'ability:' + ability ;
807
- pokemon . volatiles [ effect ] = this . initEffectState ( { id : this . toID ( effect ) , target : pokemon } ) ;
806
+ const effect = 'ability:' + this . toID ( ability ) ;
807
+ pokemon . volatiles [ effect ] = this . initEffectState ( { id : effect , target : pokemon } ) ;
808
808
if ( ! pokemon . m . abils ) pokemon . m . abils = [ ] ;
809
809
if ( ! pokemon . m . abils . includes ( effect ) ) pokemon . m . abils . push ( effect ) ;
810
810
}
@@ -1611,8 +1611,8 @@ export const Formats: import('../sim/dex-formats').FormatList = [
1611
1611
if ( pokemon . m . innates ) {
1612
1612
for ( const innate of pokemon . m . innates ) {
1613
1613
if ( pokemon . hasAbility ( innate ) ) continue ;
1614
- const effect = 'ability:' + innate ;
1615
- pokemon . volatiles [ effect ] = this . initEffectState ( { id : this . toID ( effect ) , target : pokemon } ) ;
1614
+ const effect = 'ability:' + this . toID ( innate ) ;
1615
+ pokemon . volatiles [ effect ] = this . initEffectState ( { id : effect , target : pokemon } ) ;
1616
1616
}
1617
1617
}
1618
1618
} ,
@@ -1805,8 +1805,8 @@ export const Formats: import('../sim/dex-formats').FormatList = [
1805
1805
if ( ! pokemon . m . sharedItemsUsed ) pokemon . m . sharedItemsUsed = [ ] ;
1806
1806
for ( const item of format . getSharedItems ! ( pokemon ) ) {
1807
1807
if ( pokemon . m . sharedItemsUsed . includes ( item ) ) continue ;
1808
- const effect = 'item:' + item ;
1809
- pokemon . volatiles [ effect ] = this . initEffectState ( { id : this . toID ( effect ) , target : pokemon } ) ;
1808
+ const effect = 'item:' + this . toID ( item ) ;
1809
+ pokemon . volatiles [ effect ] = this . initEffectState ( { id : effect , target : pokemon } ) ;
1810
1810
}
1811
1811
} ,
1812
1812
} ,
@@ -2611,8 +2611,8 @@ export const Formats: import('../sim/dex-formats').FormatList = [
2611
2611
let format = this . format ;
2612
2612
if ( ! format . getSharedPower ) format = this . dex . formats . get ( 'gen9sharedpower' ) ;
2613
2613
for ( const ability of format . getSharedPower ! ( pokemon ) ) {
2614
- const effect = 'ability:' + ability ;
2615
- pokemon . volatiles [ effect ] = this . initEffectState ( { id : this . toID ( effect ) , target : pokemon } ) ;
2614
+ const effect = 'ability:' + this . toID ( ability ) ;
2615
+ pokemon . volatiles [ effect ] = this . initEffectState ( { id : effect , target : pokemon } ) ;
2616
2616
if ( ! pokemon . m . abils ) pokemon . m . abils = [ ] ;
2617
2617
if ( ! pokemon . m . abils . includes ( effect ) ) pokemon . m . abils . push ( effect ) ;
2618
2618
}
0 commit comments