mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-21 06:49:35 +02:00
laklhaflhasd
This commit is contained in:
parent
2f68791021
commit
8277d2e334
@ -4694,23 +4694,23 @@ export class TerrainEventTypeChangeAbAttr extends PostSummonAbAttr {
|
|||||||
const currentTerrain = pokemon.scene.arena.getTerrainType();
|
const currentTerrain = pokemon.scene.arena.getTerrainType();
|
||||||
const typeChange: Type[] = [];
|
const typeChange: Type[] = [];
|
||||||
switch (currentTerrain) {
|
switch (currentTerrain) {
|
||||||
case TerrainType.ELECTRIC:
|
case TerrainType.ELECTRIC:
|
||||||
typeChange.push(Type.ELECTRIC);
|
typeChange.push(Type.ELECTRIC);
|
||||||
break;
|
break;
|
||||||
case TerrainType.MISTY:
|
case TerrainType.MISTY:
|
||||||
typeChange.push(Type.FAIRY);
|
typeChange.push(Type.FAIRY);
|
||||||
break;
|
break;
|
||||||
case TerrainType.GRASSY:
|
case TerrainType.GRASSY:
|
||||||
typeChange.push(Type.GRASS);
|
typeChange.push(Type.GRASS);
|
||||||
break;
|
break;
|
||||||
case TerrainType.PSYCHIC:
|
case TerrainType.PSYCHIC:
|
||||||
typeChange.push(Type.PSYCHIC);
|
typeChange.push(Type.PSYCHIC);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
pokemon.getTypes(false, false, true).forEach(t => {
|
pokemon.getTypes(false, false, true).forEach(t => {
|
||||||
typeChange.push(t);
|
typeChange.push(t);
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (typeChange.length !== 0) {
|
if (typeChange.length !== 0) {
|
||||||
if (pokemon.summonData.addedType && typeChange.includes(pokemon.summonData.addedType)) {
|
if (pokemon.summonData.addedType && typeChange.includes(pokemon.summonData.addedType)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user