Goes 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
Increases the incoming stat stage matching stat by boost.
TempBattleStat
N/A
NumberHolder
that holds the resulting value of the stat stage multiplier
Optional
_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 args contains the necessary elements and if the incoming stat is matches stat.
Optional
tempBattleStat: ATK | DEF | SPATK | SPDEF | SPD | ACCTempBattleStat
being affected
Optional
statLevel: NumberHolderNumberHolder
that holds the resulting value of the stat stage multiplier
true
if the modifier can be applied, false otherwise
Modifier used for party-wide items, specifically the X items, that temporarily increases the stat stage multiplier of the corresponding
TempBattleStat
.See
apply