mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-16 00:02:23 +02:00
CLOSES #788, CLOSES #795, CLOSES #796, CLOSES #797, CLOSES #805, CLOSES #826, CLOSES #833, CLOSES #835, CLOSES #837, CLOSES #844, CLOSES #845, CLOSES #846, CLOSES #847
This commit is contained in:
@@ -489,6 +489,13 @@ function ItemEffects.use(data, save, itemId, target, battle, moveIndex, ow)
|
||||
if battle then
|
||||
return "failed", { notTime(data, save) }
|
||||
end
|
||||
-- ItemUseBicycle (engine/items/item_effects.asm) opens with
|
||||
-- `cp 2 ; is the player surfing?` -> jp z, ItemUseNotTime, so the
|
||||
-- BICYCLE refuses on the water with the same OAK text as the rods
|
||||
-- above (#846)
|
||||
if ow and ow.player and ow.player.surfing then
|
||||
return "failed", { notTime(data, save) }
|
||||
end
|
||||
return "bicycle"
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user