From bf37e6a5fa7f628025eaac7ebd1f7999ded99bc8 Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Thu, 1 Aug 2019 16:09:41 -0500 Subject: [PATCH] Fix onModifyTemplate signature This will intentionally fail CI. It's my hope that #5664 will pass it. --- sim/globals.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim/globals.ts b/sim/globals.ts index 86201fb470..d61b245ce5 100644 --- a/sim/globals.ts +++ b/sim/globals.ts @@ -1037,7 +1037,7 @@ interface FormatsData extends EventMethods { onAfterMega?: (this: Battle, pokemon: Pokemon) => void onBegin?: (this: Battle) => void onChangeSet?: (this: ModdedDex, set: PokemonSet, format: Format, setHas?: AnyObject, teamHas?: AnyObject) => string[] | void - onModifyTemplate?: (this: Battle, template: Template, target: Pokemon, source: Pokemon, effect: Effect) => Template | void + onModifyTemplate?: (this: Battle, template: Template, target?: Pokemon, source?: Pokemon, effect?: Effect) => Template | void onStart?: (this: Battle) => void onTeamPreview?: (this: Battle) => void onValidateSet?: (this: ModdedDex, set: PokemonSet, format: Format, setHas: AnyObject, teamHas: AnyObject) => string[] | void