mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-28 19:22:29 +02:00
Merge branch 'ability-refactoring' of https://github.com/Wlowscha/pokerogue into ability-refactoring
This commit is contained in:
commit
e206242ac7
@ -2696,10 +2696,6 @@ export class PreSwitchOutFormChangeAbAttr extends PreSwitchOutAbAttr {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class PreLeaveFieldAbAttr extends AbAttr {
|
export class PreLeaveFieldAbAttr extends AbAttr {
|
||||||
constructor() {
|
|
||||||
super(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
applyPreLeaveField(pokemon: Pokemon, passive: boolean, simulated: boolean, args: any[]): boolean | Promise<boolean> {
|
applyPreLeaveField(pokemon: Pokemon, passive: boolean, simulated: boolean, args: any[]): boolean | Promise<boolean> {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -2710,12 +2706,11 @@ export class PreLeaveFieldAbAttr extends AbAttr {
|
|||||||
* Clears Desolate Land/Primordial Sea/Delta Stream upon the Pokemon switching out.
|
* Clears Desolate Land/Primordial Sea/Delta Stream upon the Pokemon switching out.
|
||||||
*/
|
*/
|
||||||
export class PreLeaveFieldClearWeatherAbAttr extends PreLeaveFieldAbAttr {
|
export class PreLeaveFieldClearWeatherAbAttr extends PreLeaveFieldAbAttr {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param pokemon The {@linkcode Pokemon} with the ability
|
* @param pokemon The {@linkcode Pokemon} with the ability
|
||||||
* @param passive N/A
|
* @param passive N/A
|
||||||
* @param args N/A
|
* @param args N/A
|
||||||
* @returns {boolean} Returns true if the weather clears, otherwise false.
|
* @returns Returns `true` if the weather clears, otherwise `false`.
|
||||||
*/
|
*/
|
||||||
applyPreLeaveField(pokemon: Pokemon, passive: boolean, simulated: boolean, args: any[]): boolean | Promise<boolean> {
|
applyPreLeaveField(pokemon: Pokemon, passive: boolean, simulated: boolean, args: any[]): boolean | Promise<boolean> {
|
||||||
const weatherType = globalScene.arena.weather?.weatherType;
|
const weatherType = globalScene.arena.weather?.weatherType;
|
||||||
|
Loading…
Reference in New Issue
Block a user