Make quiet default to false

This commit is contained in:
Sirz Benjie 2025-04-28 21:13:30 -05:00
parent 1da8f15418
commit 96cde0f854
No known key found for this signature in database
GPG Key ID: 4A524B4D196C759E
3 changed files with 3 additions and 3 deletions

View File

@ -2463,7 +2463,7 @@ export class StatusEffectAttr extends MoveEffectAttr {
return false; return false;
} }
if (((!pokemon.status || this.overrideStatus) || (pokemon.status.effect === this.effect && moveChance < 0)) if (((!pokemon.status || this.overrideStatus) || (pokemon.status.effect === this.effect && moveChance < 0))
&& pokemon.trySetStatus(this.effect, true, user, this.turnsRemaining, null, this.overrideStatus)) { && pokemon.trySetStatus(this.effect, true, user, this.turnsRemaining, null, this.overrideStatus, false)) {
applyPostAttackAbAttrs(ConfusionOnStatusEffectAbAttr, user, target, move, null, false, this.effect); applyPostAttackAbAttrs(ConfusionOnStatusEffectAbAttr, user, target, move, null, false, this.effect);
return true; return true;
} }

View File

@ -5530,7 +5530,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
turnsRemaining = 0, turnsRemaining = 0,
sourceText: string | null = null, sourceText: string | null = null,
overrideStatus?: boolean, overrideStatus?: boolean,
quiet = false, quiet = true,
): boolean { ): boolean {
if (!this.canSetStatus(effect, quiet, overrideStatus, sourcePokemon)) { if (!this.canSetStatus(effect, quiet, overrideStatus, sourcePokemon)) {
return false; return false;

View File

@ -1743,7 +1743,7 @@ export class TurnStatusEffectModifier extends PokemonHeldItemModifier {
* @returns `true` if the status effect was applied successfully * @returns `true` if the status effect was applied successfully
*/ */
override apply(pokemon: Pokemon): boolean { override apply(pokemon: Pokemon): boolean {
return pokemon.trySetStatus(this.effect, true, undefined, undefined, this.type.name, undefined, true); return pokemon.trySetStatus(this.effect, true, undefined, undefined, this.type.name);
} }
getMaxHeldItemCount(_pokemon: Pokemon): number { getMaxHeldItemCount(_pokemon: Pokemon): number {