fixed grounded check
parent
189b20737d
commit
310ad59def
|
@ -2249,7 +2249,7 @@ export class WeatherBallTypeAttr extends VariableMoveTypeAttr {
|
||||||
|
|
||||||
export class TerrainPulseTypeAttr extends VariableMoveTypeAttr {
|
export class TerrainPulseTypeAttr extends VariableMoveTypeAttr {
|
||||||
apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): boolean {
|
apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): boolean {
|
||||||
if(user.isGrounded)
|
if(!user.isGrounded)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
const currentTerrain = user.scene.arena.getTerrainType();
|
const currentTerrain = user.scene.arena.getTerrainType();
|
||||||
|
|
Loading…
Reference in New Issue