mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-06 08:22:16 +02:00
Update pokemon.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
parent
ffa51715f3
commit
9c85e977ca
@ -4952,7 +4952,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
|||||||
/**
|
/**
|
||||||
* Find and remove all {@linkcode BattlerTag}s matching the given function.
|
* Find and remove all {@linkcode BattlerTag}s matching the given function.
|
||||||
* @param tagFilter a function dictating which tags to remove
|
* @param tagFilter a function dictating which tags to remove
|
||||||
*/
|
*/
|
||||||
findAndRemoveTags(tagFilter: (tag: BattlerTag) => boolean): void {
|
findAndRemoveTags(tagFilter: (tag: BattlerTag) => boolean): void {
|
||||||
const tags = this.summonData.tags;
|
const tags = this.summonData.tags;
|
||||||
const tagsToRemove = tags.filter(t => tagFilter(t));
|
const tagsToRemove = tags.filter(t => tagFilter(t));
|
||||||
|
Loading…
Reference in New Issue
Block a user