mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-06 08:22:16 +02:00
Update move.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
parent
681c06862c
commit
2d87a2b318
@ -2761,11 +2761,6 @@ export class StealEatBerryAttr extends EatBerryAttr {
|
|||||||
* @returns `true` if the function succeeds
|
* @returns `true` if the function succeeds
|
||||||
*/
|
*/
|
||||||
apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): boolean {
|
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
|
// check for abilities that block item theft
|
||||||
const cancelled = new BooleanHolder(false);
|
const cancelled = new BooleanHolder(false);
|
||||||
applyAbAttrs(BlockItemTheftAbAttr, target, cancelled);
|
applyAbAttrs(BlockItemTheftAbAttr, target, cancelled);
|
||||||
|
Loading…
Reference in New Issue
Block a user