Skip to content

Berserker doesn't activate if mon hit's exactly half hp #349

@StephenLynx

Description

@StephenLynx

On battle_util it checks like so:
gBattleStruct->hpBefore[battler] > gBattleMons[battler].maxHP / 2
&& gBattleMons[battler].hp < gBattleMons[battler].maxHP / 2

So if it hits exactly half hp, it won't trigger in the same turn because of the second check, the next one it will fail the first check. I fixed this on https://gitgud.io/stephenlynx/pokemonie/-/commit/1ad25d09151919379a02f45f3fcec20146ad5c72

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingconfirmedBug/issue confirmed with test or code check

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions