Update enemy modifier rates and update trainer modifier display
This commit is contained in:
1 parent
00f7bc595b
commit
2001dd780b
8 files changed
+68
-33
No files matched your search
+1
-1
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user