mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-29 13:50:42 +01:00
69 lines
2.4 KiB
C
69 lines
2.4 KiB
C
#include "global.h"
|
|
#include "test_battle.h"
|
|
|
|
SINGLE_BATTLE_TEST("Oblivious prevents Infatuation")
|
|
{
|
|
GIVEN {
|
|
ASSUME(gBattleMoves[MOVE_ATTRACT].effect == EFFECT_ATTRACT);
|
|
PLAYER(SPECIES_SLOWPOKE) { Ability(ABILITY_OBLIVIOUS); Gender(MON_MALE); };
|
|
OPPONENT(SPECIES_WOBBUFFET) { Gender(MON_FEMALE); };
|
|
} WHEN {
|
|
TURN { MOVE(opponent, MOVE_ATTRACT); }
|
|
} SCENE {
|
|
ABILITY_POPUP(player, ABILITY_OBLIVIOUS);
|
|
NONE_OF { ANIMATION(ANIM_TYPE_STATUS, B_ANIM_STATUS_INFATUATION, player); }
|
|
MESSAGE("It doesn't affect Slowpoke…");
|
|
}
|
|
}
|
|
|
|
SINGLE_BATTLE_TEST("Oblivious prevents Captivate")
|
|
{
|
|
GIVEN {
|
|
ASSUME(gBattleMoves[MOVE_CAPTIVATE].effect == EFFECT_CAPTIVATE);
|
|
PLAYER(SPECIES_SLOWPOKE) { Ability(ABILITY_OBLIVIOUS); Gender(MON_MALE); };
|
|
OPPONENT(SPECIES_WOBBUFFET) { Gender(MON_FEMALE); };
|
|
} WHEN {
|
|
TURN { MOVE(opponent, MOVE_ATTRACT); }
|
|
} SCENE {
|
|
ABILITY_POPUP(player, ABILITY_OBLIVIOUS);
|
|
NONE_OF { ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_STATS_CHANGE, player); }
|
|
MESSAGE("It doesn't affect Slowpoke…");
|
|
}
|
|
}
|
|
|
|
SINGLE_BATTLE_TEST("Oblivious prevents Taunt")
|
|
{
|
|
GIVEN {
|
|
ASSUME(gBattleMoves[MOVE_TAUNT].effect == EFFECT_TAUNT);
|
|
ASSUME(B_OBLIVIOUS_TAUNT >= GEN_6);
|
|
PLAYER(SPECIES_SLOWPOKE) { Ability(ABILITY_OBLIVIOUS); };
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
} WHEN {
|
|
TURN { MOVE(opponent, MOVE_TAUNT); }
|
|
TURN { MOVE(player, MOVE_SPORE); }
|
|
} SCENE {
|
|
ABILITY_POPUP(player, ABILITY_OBLIVIOUS);
|
|
NONE_OF { ANIMATION(ANIM_TYPE_MOVE, MOVE_TAUNT, opponent); }
|
|
MESSAGE("It doesn't affect Slowpoke…");
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_SPORE, player);
|
|
ANIMATION(ANIM_TYPE_STATUS, B_ANIM_STATUS_SLP, opponent);
|
|
}
|
|
}
|
|
|
|
SINGLE_BATTLE_TEST("Oblivious prevents Intimidate")
|
|
{
|
|
GIVEN {
|
|
ASSUME(B_UPDATED_INTIMIDATE >= GEN_8);
|
|
PLAYER(SPECIES_SLOWPOKE) { Ability(ABILITY_OBLIVIOUS); };
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
OPPONENT(SPECIES_EKANS) { Ability(ABILITY_INTIMIDATE); };
|
|
} WHEN {
|
|
TURN { SWITCH(opponent, 1); }
|
|
} SCENE {
|
|
ABILITY_POPUP(opponent, ABILITY_INTIMIDATE);
|
|
ABILITY_POPUP(player, ABILITY_OBLIVIOUS);
|
|
NONE_OF { ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_STATS_CHANGE, player); }
|
|
MESSAGE("Slowpoke's attack was not lowered!");
|
|
}
|
|
}
|