mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-27 20:24:18 +01:00
56 lines
1.7 KiB
C
56 lines
1.7 KiB
C
#include "global.h"
|
|
#include "test/battle.h"
|
|
|
|
SINGLE_BATTLE_TEST("Sap Sipper negates damage from Grass-type moves")
|
|
{
|
|
GIVEN {
|
|
PLAYER(SPECIES_MARILL) { Ability(ABILITY_SAP_SIPPER); }
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
} WHEN {
|
|
TURN { MOVE(opponent, MOVE_VINE_WHIP); }
|
|
} SCENE {
|
|
NONE_OF { HP_BAR(player); }
|
|
}
|
|
}
|
|
|
|
SINGLE_BATTLE_TEST("Sap Sipper negates effects from Grass-type moves")
|
|
{
|
|
GIVEN {
|
|
PLAYER(SPECIES_MARILL) { Ability(ABILITY_SAP_SIPPER); }
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
} WHEN {
|
|
TURN { MOVE(opponent, MOVE_SPORE); }
|
|
} SCENE {
|
|
NONE_OF { ANIMATION(ANIM_TYPE_STATUS, B_ANIM_STATUS_SLP, player); }
|
|
NONE_OF { STATUS_ICON(player, sleep: TRUE); }
|
|
}
|
|
}
|
|
|
|
SINGLE_BATTLE_TEST("Sap Sipper increases Attack by one stage when hit by a Grass-type move")
|
|
{
|
|
GIVEN {
|
|
PLAYER(SPECIES_MARILL) { Ability(ABILITY_SAP_SIPPER); }
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
} WHEN {
|
|
TURN { MOVE(opponent, MOVE_VINE_WHIP); }
|
|
} SCENE {
|
|
ABILITY_POPUP(player, ABILITY_SAP_SIPPER);
|
|
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_STATS_CHANGE, player);
|
|
MESSAGE("Marill's Attack rose!");
|
|
}
|
|
}
|
|
|
|
SINGLE_BATTLE_TEST("Sap Sipper does not increase Attack if already maxed")
|
|
{
|
|
GIVEN {
|
|
PLAYER(SPECIES_MARILL) { Ability(ABILITY_SAP_SIPPER); }
|
|
OPPONENT(SPECIES_WOBBUFFET) { Speed(1); }
|
|
} WHEN {
|
|
TURN { MOVE(player, MOVE_BELLY_DRUM); MOVE(opponent, MOVE_VINE_WHIP); }
|
|
} SCENE {
|
|
ABILITY_POPUP(player, ABILITY_SAP_SIPPER);
|
|
NONE_OF { ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_STATS_CHANGE, player); }
|
|
NONE_OF { MESSAGE("Marill's Attack rose!"); }
|
|
}
|
|
}
|