mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-29 18:26:09 +00:00
[Bug] Fix bug in doubles after 1 opponent is phazed (#2419)
* Hotfix uturn with kings rock * Hotfix for crashing after phazing away a doubles opponent * Hotfix for crashing after phazing away a doubles opponent
This commit is contained in:
parent
3d9b134332
commit
cb5cedac84
@ -2484,6 +2484,9 @@ function getSheerForceHitDisableAbCondition(): AbAttrCondition {
|
|||||||
|
|
||||||
function getWeatherCondition(...weatherTypes: WeatherType[]): AbAttrCondition {
|
function getWeatherCondition(...weatherTypes: WeatherType[]): AbAttrCondition {
|
||||||
return (pokemon: Pokemon) => {
|
return (pokemon: Pokemon) => {
|
||||||
|
if (!pokemon.scene?.arena) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (pokemon.scene.arena.weather?.isEffectSuppressed(pokemon.scene)) {
|
if (pokemon.scene.arena.weather?.isEffectSuppressed(pokemon.scene)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user