Update move.ts

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
Bertie690 2025-04-30 07:56:15 -04:00 committed by GitHub
parent 681c06862c
commit 2d87a2b318
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2761,11 +2761,6 @@ export class StealEatBerryAttr extends EatBerryAttr {
* @returns `true` if the function succeeds
*/
apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): boolean {
// Stealing fails against substitute
if (move.hitsSubstitute(user, target)) {
return false;
}
// check for abilities that block item theft
const cancelled = new BooleanHolder(false);
applyAbAttrs(BlockItemTheftAbAttr, target, cancelled);