type only changes when grounded
parent
f82f16173b
commit
92d8bf0ed7
|
@ -2249,7 +2249,10 @@ 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 {
|
||||||
const currentTerrain = user.scene.arena.getTerrainType()
|
if(user.isGrounded)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
const currentTerrain = user.scene.arena.getTerrainType();
|
||||||
const type = (args[0] as Utils.IntegerHolder);
|
const type = (args[0] as Utils.IntegerHolder);
|
||||||
|
|
||||||
switch (currentTerrain) {
|
switch (currentTerrain) {
|
||||||
|
|
Loading…
Reference in New Issue