mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 23:42:18 +02:00
type only changes when grounded
This commit is contained in:
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
Block a user