add rocky helmet dmg to tangling hair + defiant test to ensure original battler IDs from chaining effects (#5423)

Co-authored-by: ghoulslash <pokevoyager0@gmail.com>
This commit is contained in:
ghoulslash 2024-09-22 13:44:18 -04:00 committed by GitHub
parent 918d45a623
commit acd07ccfc1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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); }
@ -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!");
}
}