Update ability.ts

Added comment explaining the simulated parameter
pull/919/head
Dread134 2024-05-15 13:55:36 -04:00
parent d6ceb30d86
commit e2317b79a3
1 changed files with 1 additions and 1 deletions

View File

@ -2824,7 +2824,7 @@ export function applyPostStatChangeAbAttrs(attrType: { new(...args: any[]): Post
export function applyPreSetStatusAbAttrs(attrType: { new(...args: any[]): PreSetStatusAbAttr },
pokemon: Pokemon, effect: StatusEffect, cancelled: Utils.BooleanHolder, ...args: any[]): Promise<void> {
const simulated = args[0];
const simulated = args[0]; // Used to mark the call as simulated or not
return applyAbAttrsInternal<PreSetStatusAbAttr>(attrType, pokemon, (attr, passive) => attr.applyPreSetStatus(pokemon, passive, effect, cancelled, args), args, false, false, simulated);
}