Skip to content

Commit

Permalink
add rocky helmet dmg to tangling hair + defiant test to ensure origin…
Browse files Browse the repository at this point in the history
…al battler IDs from chaining effects (rh-hideout#5423)

Co-authored-by: ghoulslash <[email protected]>
  • Loading branch information
ghoulslash and ghoulslash authored Sep 22, 2024
1 parent 918d45a commit acd07cc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/battle/ability/tangling_hair.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ SINGLE_BATTLE_TEST("Tangling Hair does not cause Rocky Helmet miss activation")
}
}

SINGLE_BATTLE_TEST("Tangling Hair Speed stat drop triggers defiant")
SINGLE_BATTLE_TEST("Tangling Hair Speed stat drop triggers defiant and keeps original attacker/target")
{
GIVEN {
PLAYER(SPECIES_DUGTRIO) { Ability(ABILITY_TANGLING_HAIR); }
PLAYER(SPECIES_DUGTRIO) { Ability(ABILITY_TANGLING_HAIR); Item(ITEM_ROCKY_HELMET); }
OPPONENT(SPECIES_PAWNIARD) { Ability(ABILITY_DEFIANT); }
} WHEN {
TURN { MOVE(opponent, MOVE_TACKLE); }
Expand All @@ -64,5 +64,7 @@ SINGLE_BATTLE_TEST("Tangling Hair Speed stat drop triggers defiant")
MESSAGE("Foe Pawniard's Speed fell!");
ABILITY_POPUP(opponent, ABILITY_DEFIANT);
MESSAGE("Foe Pawniard's Attack sharply rose!");
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_HELD_ITEM_EFFECT, player);
MESSAGE("Foe Pawniard was hurt by Dugtrio's Rocky Helmet!");
}
}

0 comments on commit acd07cc

Please sign in to comment.