rh-hideout / pokeemerald-expansion

Feature branche for the pokeemerald decompilation. See the wiki for more info.
372 stars 1.21k forks source link

Burn / poison damage triggers before Healer #5563

Open Pawkkie opened 1 month ago

Pawkkie commented 1 month ago

Description

Issue being made for KNOWN_FAILING test added in #5559

The test for easy lookup:

DOUBLE_BATTLE_TEST("Healer cures status condition before burn or poison damage is dealt")
{
    KNOWN_FAILING; // According to Bulbapedia, Healer should trigger before status damage and Wobbuffet should live
    // Source: https://bulbapedia.bulbagarden.net/wiki/Healer_(Ability)#Effect
    u16 status;
    PARAMETRIZE { status = STATUS1_POISON; }
    PARAMETRIZE { status = STATUS1_BURN; }
    PARAMETRIZE { status = STATUS1_TOXIC_POISON; }
    PARAMETRIZE { status = STATUS1_FROSTBITE; }
    PASSES_RANDOMLY(30, 100, RNG_HEALER);
    GIVEN {
        PLAYER(SPECIES_WOBBUFFET);
        PLAYER(SPECIES_WOBBUFFET);
        OPPONENT(SPECIES_WOBBUFFET) { HP(1); Status1(status); }
        OPPONENT(SPECIES_CHANSEY) { Ability(ABILITY_HEALER); }
    } WHEN {
        TURN {}
    } SCENE {
        NOT {
            MESSAGE("The opposing Wobbuffet fainted!");
        }
        MESSAGE("The opposing Chansey's Healer cured Foe Wobbuffet's problem!");
    }
}

Version

1.9.3 (Latest release)

Upcoming/master Version

No response

Discord contact info

No response

AlexOn1ine commented 1 month ago

Probably related to #5024