AbstractOptionalbattleCount: numberOptionalstackCount: numberGoes through existing modifiers for any that match the selected modifier, which will then either add it to the existing modifiers if none were found or, if one was found, it will refresh battleCount.
PersistentModifier array of the player's modifiers
N/A
true if the modifier was successfully added or applied, false otherwise
AbstractapplyHandles applying of Modifier
collection of all passed parameters
AbstractcloneOptional_virtual: booleanOptional_forThreshold: booleanLapses the battleCount by 1.
passed arguments (not in use here)
true if the battleCount is greater than 0
Updates an existing modifier with a new maxBattles and battleCount.
Checks if Modifier should be applied
parameters passed to Modifier.apply
always true by default
Modifier used for party-wide or passive items that start an initial battleCount equal to maxBattles that, for every battle, decrements. Typically, when battleCount reaches 0, the modifier will be removed. If a modifier of the same type is to be added, it will reset battleCount back to maxBattles of the existing modifier instead of adding that modifier directly.
See
add