Implement Prankster ability

This commit is contained in:
Flashfyre committed 2024-03-28 16:24:11 -04:00
1 parent 31d0d9b84e
commit 11bd7fdbca
6 files changed
+47 -17

No files matched your search

+3 -3
View File
@@ -17,7 +17,7 @@ import { Moves } from "../data/enums/moves";
import { TimeOfDay } from "../data/enums/time-of-day";
import { Terrain, TerrainType } from "../data/terrain";
import { PostTerrainChangeAbAttr, PostWeatherChangeAbAttr, applyPostTerrainChangeAbAttrs, applyPostWeatherChangeAbAttrs } from "../data/ability";
import { PartyMemberStrength } from "../data/enums/party-member-strength";
import Pokemon from "./pokemon";
const WEATHER_OVERRIDE = WeatherType.NONE;
@@ -313,8 +313,8 @@ export class Arena {
return this.weather && !this.weather.isEffectSuppressed(this.scene) && this.weather.isMoveWeatherCancelled(move);
}
isMoveTerrainCancelled(move: Move) {
return this.terrain && this.terrain.isMoveTerrainCancelled(move);
isMoveTerrainCancelled(user: Pokemon, move: Move) {
return this.terrain && this.terrain.isMoveTerrainCancelled(user, move);
}
getAttackTypeMultiplier(attackType: Type, grounded: boolean): number {