diff --git a/data/abilities.js b/data/abilities.js index 2539271cf4..c9eceef5bc 100644 --- a/data/abilities.js +++ b/data/abilities.js @@ -2668,7 +2668,7 @@ exports.BattleAbilities = { "stall": { shortDesc: "This Pokemon moves last among Pokemon using the same or greater priority moves.", onModifyPriority: function (priority) { - return priority - 0.1; + return Math.round(priority) - 0.1; }, id: "stall", name: "Stall", diff --git a/data/items.js b/data/items.js index b32b6b46ab..5ef1744ff5 100644 --- a/data/items.js +++ b/data/items.js @@ -955,12 +955,13 @@ exports.BattleItems = { basePower: 100, type: "Ghost", }, + onModifyPriorityPriority: -1, onModifyPriority: function (priority, pokemon) { if (pokemon.hp <= pokemon.maxhp / 4 || (pokemon.hp <= pokemon.maxhp / 2 && pokemon.hasAbility('gluttony'))) { if (pokemon.eatItem()) { this.add('-activate', pokemon, 'Custap Berry'); pokemon.removeVolatile('custapberry'); - return priority + 0.1; + return Math.round(priority) + 0.1; } } }, @@ -1592,9 +1593,7 @@ exports.BattleItems = { basePower: 10, }, onModifyPriority: function (priority, pokemon) { - if (!pokemon.hasAbility('stall')) { - return priority - 0.1; - } + return Math.round(priority) - 0.1; }, num: 316, gen: 4, @@ -2231,9 +2230,7 @@ exports.BattleItems = { basePower: 10, }, onModifyPriority: function (priority, pokemon) { - if (!pokemon.hasAbility('stall')) { - return priority - 0.1; - } + return Math.round(priority) - 0.1; }, num: 279, gen: 4, @@ -3510,10 +3507,11 @@ exports.BattleItems = { }, "quickclaw": { id: "quickclaw", + onModifyPriorityPriority: -1, onModifyPriority: function (priority, pokemon) { if (this.random(5) === 0) { this.add('-activate', pokemon, 'item: Quick Claw'); - return priority + 0.1; + return Math.round(priority) + 0.1; } }, name: "Quick Claw", diff --git a/mods/gen3/items.js b/mods/gen3/items.js index 9e9e42cc34..91caf9e5c4 100644 --- a/mods/gen3/items.js +++ b/mods/gen3/items.js @@ -161,7 +161,7 @@ exports.BattleItems = { inherit: true, onModifyPriority: function (priority, pokemon) { if (this.random(5) === 0) { - return priority + 0.1; + return Math.round(priority) + 0.1; } }, },