mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-20 16:42:45 +02:00
Update callsites in turn-start-phase
This commit is contained in:
parent
8a96444b8c
commit
eab7d6d1a0
@ -66,8 +66,12 @@ export class TurnStartPhase extends FieldPhase {
|
||||
globalScene.getField(true).forEach(p => {
|
||||
const bypassSpeed = new BooleanHolder(false);
|
||||
const canCheckHeldItems = new BooleanHolder(true);
|
||||
applyAbAttrs("BypassSpeedChanceAbAttr", p, null, false, bypassSpeed);
|
||||
applyAbAttrs("PreventBypassSpeedChanceAbAttr", p, null, false, bypassSpeed, canCheckHeldItems);
|
||||
applyAbAttrs("BypassSpeedChanceAbAttr", { pokemon: p, bypass: bypassSpeed });
|
||||
applyAbAttrs("PreventBypassSpeedChanceAbAttr", {
|
||||
pokemon: p,
|
||||
bypass: bypassSpeed,
|
||||
canCheckHeldItems: canCheckHeldItems,
|
||||
});
|
||||
if (canCheckHeldItems.value) {
|
||||
globalScene.applyModifiers(BypassSpeedChanceModifier, p.isPlayer(), p, bypassSpeed);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user