Update enemy modifier rates and update trainer modifier display

This commit is contained in:
Flashfyre committed 2023-10-23 13:48:56 -04:00
1 parent 00f7bc595b
commit 2001dd780b
8 files changed
+68 -33

No files matched your search

+1 -1
View File
@@ -2177,7 +2177,7 @@ function applyMoveAttrsInternal(attrFilter: MoveAttrFilter, user: Pokemon, targe
const moveAttrs = move.attrs.filter(a => attrFilter(a));
for (let attr of moveAttrs) {
const result = attr.apply(user, target, move, args);
if (result instanceof Promise<boolean>)
if (result instanceof Promise)
attrPromises.push(result);
}
Promise.allSettled(attrPromises).then(() => resolve());