type only changes when grounded

pull/235/head
Luc Dube 2024-04-22 02:40:36 -04:00
parent f82f16173b
commit 92d8bf0ed7
1 changed files with 4 additions and 1 deletions

View File

@ -2249,7 +2249,10 @@ export class WeatherBallTypeAttr extends VariableMoveTypeAttr {
export class TerrainPulseTypeAttr extends VariableMoveTypeAttr {
apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): boolean {
const currentTerrain = user.scene.arena.getTerrainType()
if(user.isGrounded)
return false;
const currentTerrain = user.scene.arena.getTerrainType();
const type = (args[0] as Utils.IntegerHolder);
switch (currentTerrain) {