Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kee Berry raises Defense by 1 stage instead of 2 #3394

Closed
pkmnsnfrn opened this issue Oct 9, 2023 · 1 comment · Fixed by #3409
Closed

Kee Berry raises Defense by 1 stage instead of 2 #3394

pkmnsnfrn opened this issue Oct 9, 2023 · 1 comment · Fixed by #3409
Labels
bug Bug category: battle-mechanic Pertains to battle mechanics status: unconfirmed This bug has not been reproduced yet

Comments

@pkmnsnfrn
Copy link
Collaborator

Description

Description

A Kee Berry raises the holder's Defense by one stage when hit by a physical move. This consumes the Kee Berry.

When the player has a Kee Berry attached to their Pokémon, and that Pokémon is damaged by a physical attack, the Pokémon holding the Kee Berry gets +2 Defense instead of +1. +2 Defense should only apply when the holding Pokémon's ability is Ripen.

Repo

data/scripts/debug.inc
Debug_Script_1::
+    givemon SPECIES_RAPIDASH_GALARIAN,100,ITEM_KEE_BERRY
    end

Debug_Script_2::
+    setwildbattle SPECIES_DONPHAN, 40, ITEM_NONE
+    dowildbattle
	end

Debug_Script_3::
+    setwildbattle SPECIES_HITMONCHAN, 20, ITEM_NONE
+    dowildbattle
	end

Run Script 1, then Script 2 or 3.

Repro Steps

  1. Rapidash is hit with physical attack by Hitmonchan
  2. Kee Berry activates
  3. Message prints that Rapidash gets Defense boost
  4. Check Debug menu - Rapidash has +2 DEF <- bug

Video

Video of bug
boost.mp4

Version

1.6.1 (Default)

Upcoming Version

70ed93e

Discord contact info

pkmnsnfrn

@pkmnsnfrn pkmnsnfrn added bug Bug category: battle-mechanic Pertains to battle mechanics status: unconfirmed This bug has not been reproduced yet labels Oct 9, 2023
@AlexOn1ine
Copy link
Collaborator

AlexOn1ine commented Oct 10, 2023

Both #3394 and #3393 have been fixed, I just want to write some tests before PR'ing.

(Unless someone else already did it.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug category: battle-mechanic Pertains to battle mechanics status: unconfirmed This bug has not been reproduced yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants