mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-27 12:14:20 +01:00
90d9334f0b
* Fix Sap Sipper not blocking bullet seed * add defiant sticky web test
81 lines
2.4 KiB
C
81 lines
2.4 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);
|
|
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);
|
|
MESSAGE("Marill's Attack rose!");
|
|
}
|
|
}
|
|
}
|
|
|
|
SINGLE_BATTLE_TEST("Sap Sipper blocks multi-hit grass type moves")
|
|
{
|
|
GIVEN {
|
|
ASSUME(gBattleMoves[MOVE_BULLET_SEED].effect == EFFECT_MULTI_HIT);
|
|
PLAYER(SPECIES_MARILL) { Ability(ABILITY_SAP_SIPPER); }
|
|
OPPONENT(SPECIES_SHELLDER) { Ability(ABILITY_SKILL_LINK); }
|
|
} WHEN {
|
|
TURN { MOVE(opponent, MOVE_BULLET_SEED); }
|
|
} SCENE {
|
|
MESSAGE("Foe Shellder used Bullet Seed!");
|
|
ABILITY_POPUP(player, ABILITY_SAP_SIPPER);
|
|
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_STATS_CHANGE, player);
|
|
MESSAGE("Marill's Attack rose!");
|
|
NONE_OF {
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_BULLET_SEED, opponent);
|
|
HP_BAR(player);
|
|
MESSAGE("Hit 5 time(s)!");
|
|
}
|
|
}
|
|
}
|