mirror of
https://github.com/smogon/pokemon-showdown-loginserver.git
synced 2026-09-08 18:25:11 -05:00
Support floats in COIL values
This commit is contained in:
@@ -462,7 +462,7 @@ export const actions: {[k: string]: QueryHandler} = {
|
||||
if (!formatid) {
|
||||
throw new ActionError('No format was specified.');
|
||||
}
|
||||
const source = parseInt(toID(params.coil_b));
|
||||
const source = parseFloat(toID(params.coil_b));
|
||||
if ('coil_b' in params && (isNaN(source) || !source || source < 1)) {
|
||||
throw new ActionError('No B value was specified.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user