diff --git a/calc/src/mechanics/gen4.ts b/calc/src/mechanics/gen4.ts index fbcc2da6f..14cbc828a 100644 --- a/calc/src/mechanics/gen4.ts +++ b/calc/src/mechanics/gen4.ts @@ -88,7 +88,7 @@ export function calculateDPP( desc.moveBP = basePower; } else if (move.named('Judgment') && attacker.item && attacker.item.includes('Plate')) { move.type = getItemBoostType(attacker.item)!; - } else if (move.named('Natural Gift') && attacker.item && attacker.item.includes('Berry')) { + } else if (move.named('Natural Gift') && attacker.item?.endsWith('Berry')) { const gift = getNaturalGift(gen, attacker.item)!; move.type = gift.t; move.bp = gift.p; diff --git a/calc/src/mechanics/gen56.ts b/calc/src/mechanics/gen56.ts index 4640ddf0b..cf18a5ea4 100644 --- a/calc/src/mechanics/gen56.ts +++ b/calc/src/mechanics/gen56.ts @@ -108,7 +108,7 @@ export function calculateBWXY( move.type = getItemBoostType(attacker.item)!; } else if (move.named('Techno Blast') && attacker.item && attacker.item.includes('Drive')) { move.type = getTechnoBlast(attacker.item)!; - } else if (move.named('Natural Gift') && attacker.item && attacker.item.includes('Berry')) { + } else if (move.named('Natural Gift') && attacker.item?.endsWith('Berry')) { const gift = getNaturalGift(gen, attacker.item)!; move.type = gift.t; move.bp = gift.p; diff --git a/calc/src/mechanics/gen789.ts b/calc/src/mechanics/gen789.ts index 8fe447d6b..effc021e7 100644 --- a/calc/src/mechanics/gen789.ts +++ b/calc/src/mechanics/gen789.ts @@ -162,7 +162,7 @@ export function calculateSMSSSV( type = getTechnoBlast(attacker.item)!; } else if (move.named('Multi-Attack') && attacker.item && attacker.item.includes('Memory')) { type = getMultiAttack(attacker.item)!; - } else if (move.named('Natural Gift') && attacker.item && attacker.item.includes('Berry')) { + } else if (move.named('Natural Gift') && attacker.item?.endsWith('Berry')) { const gift = getNaturalGift(gen, attacker.item)!; type = gift.t; desc.moveType = type; @@ -826,7 +826,7 @@ export function calculateBasePowerSMSSSV( desc.moveBP = basePower; break; case 'Natural Gift': - if (attacker.item?.includes('Berry')) { + if (attacker.item?.endsWith('Berry')) { const gift = getNaturalGift(gen, attacker.item)!; basePower = gift.p; desc.attackerItem = attacker.item;