mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-20 23:32:19 +02:00
Update src/modifier/modifier.ts
Co-authored-by: Amani H. <109637146+xsn34kzx@users.noreply.github.com>
This commit is contained in:
parent
e234bb8546
commit
74ccf84b30
@ -934,11 +934,7 @@ export class EvolutionStatBoosterModifier extends StatBoosterModifier {
|
||||
* @returns true if the stat boosts can be applied, false otherwise
|
||||
*/
|
||||
shouldApply(args: any[]): boolean {
|
||||
const holder = args[0];
|
||||
if (!(holder instanceof Pokemon)) {
|
||||
return false;
|
||||
}
|
||||
return super.shouldApply(args) && !holder.isMax();
|
||||
return super.shouldApply(args) && !(args[0] as Pokemon).isMax();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user