mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-20 16:42:45 +02:00
Fix regression in flower veil
This commit is contained in:
parent
c6af4acae3
commit
1fb7eb6891
@ -3834,11 +3834,9 @@ export class ConditionalUserFieldBattlerTagImmunityAbAttr extends UserFieldBattl
|
||||
override canApply(params: UserFieldBattlerTagImmunityAbAttrParams): boolean {
|
||||
// the `!!params` here is to ensure the target is not null or undefined. This is defensive programming
|
||||
// to guard against the case where
|
||||
return !!params.target && super.canApply(params) && this.condition(params.target ?? params.pokemon);
|
||||
return super.canApply(params) && this.condition(params.target);
|
||||
}
|
||||
|
||||
override apply(_params: UserFieldBattlerTagImmunityAbAttrParams) {}
|
||||
|
||||
constructor(condition: (target: Pokemon) => boolean, immuneTagTypes: BattlerTagType | BattlerTagType[]) {
|
||||
super(immuneTagTypes);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user