decision.priority = priority; // In Gen 6, Quick Guard blocks moves with artificially enhanced priority.if (this.gen > 5) decision.move.priority = priority; } priority = this.runEvent('ModifyPriority', decision.pokemon, target, decision.move, priority); decision.priority = priority; ...