mirror of
https://github.com/rh-hideout/pokeemerald-expansion
synced 2025-10-06 02:52:52 +02:00
36 lines
1.5 KiB
C
36 lines
1.5 KiB
C
#include "global.h"
|
|
#include "test/battle.h"
|
|
|
|
TO_DO_BATTLE_TEST("Assurance doubles in power if the target has been damaged in the same turn - Recoil");
|
|
TO_DO_BATTLE_TEST("Assurance doubles in power if the target has been damaged in the same turn - Life Orb");
|
|
TO_DO_BATTLE_TEST("Assurance doubles in power if the target has been damaged in the same turn - Crash");
|
|
TO_DO_BATTLE_TEST("Assurance doubles in power if the target has been damaged in the same turn - Confusion");
|
|
TO_DO_BATTLE_TEST("Assurance doubles in power if the target has been damaged in the same turn - Rocky Helmet");
|
|
|
|
DOUBLE_BATTLE_TEST("Assurance doubles in power if False Swipe connected but didn't do any damage")
|
|
{
|
|
s16 hits[2];
|
|
|
|
GIVEN {
|
|
PLAYER(SPECIES_WOBBUFFET) { HP(1); }
|
|
PLAYER(SPECIES_WOBBUFFET);
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
} WHEN {
|
|
TURN { MOVE(opponentLeft, MOVE_ASSURANCE, target: playerRight); }
|
|
TURN {
|
|
MOVE(opponentLeft, MOVE_FALSE_SWIPE, target: playerLeft);
|
|
MOVE(playerLeft, MOVE_RECOVER);
|
|
MOVE(opponentRight, MOVE_ASSURANCE, target: playerLeft);
|
|
}
|
|
} SCENE {
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_ASSURANCE, opponentLeft);
|
|
HP_BAR(playerRight, captureDamage: &hits[0]);
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_FALSE_SWIPE, opponentLeft);
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_ASSURANCE, opponentRight);
|
|
HP_BAR(playerLeft, captureDamage: &hits[1]);
|
|
} THEN {
|
|
EXPECT_MUL_EQ(hits[0], Q_4_12(2.0), hits[1]);
|
|
}
|
|
}
|