2023-10-11 10:09:50 +01:00
|
|
|
#include "global.h"
|
|
|
|
#include "test/battle.h"
|
|
|
|
|
2023-12-14 17:09:06 +00:00
|
|
|
ASSUMPTIONS
|
|
|
|
{
|
2024-01-29 11:51:32 +00:00
|
|
|
ASSUME(gMovesInfo[MOVE_IVY_CUDGEL].effect == EFFECT_IVY_CUDGEL);
|
2023-12-14 17:09:06 +00:00
|
|
|
}
|
|
|
|
|
2023-12-30 10:40:58 +00:00
|
|
|
SINGLE_BATTLE_TEST("Ivy Cudgel changes the move type depending on the form of Ogerpon")
|
2023-10-11 10:09:50 +01:00
|
|
|
{
|
|
|
|
u16 species;
|
2023-12-30 10:40:58 +00:00
|
|
|
u16 ogerpon;
|
2023-10-11 10:09:50 +01:00
|
|
|
u16 item;
|
|
|
|
|
2023-12-30 10:40:58 +00:00
|
|
|
PARAMETRIZE { species = SPECIES_BLASTOISE; ogerpon = SPECIES_OGERPON_TEAL_MASK; item = ITEM_NONE; }
|
|
|
|
PARAMETRIZE { species = SPECIES_CHARIZARD; ogerpon = SPECIES_OGERPON_CORNERSTONE_MASK; item = ITEM_CORNERSTONE_MASK; }
|
|
|
|
PARAMETRIZE { species = SPECIES_CHARIZARD; ogerpon = SPECIES_OGERPON_WELLSPRING_MASK; item = ITEM_WELLSPRING_MASK; }
|
|
|
|
PARAMETRIZE { species = SPECIES_VENUSAUR; ogerpon = SPECIES_OGERPON_HEARTHFLAME_MASK; item = ITEM_HEARTHFLAME_MASK; }
|
2023-10-11 10:09:50 +01:00
|
|
|
|
|
|
|
GIVEN {
|
2023-12-30 10:40:58 +00:00
|
|
|
PLAYER(ogerpon) { Item(item); }
|
2023-10-11 10:09:50 +01:00
|
|
|
OPPONENT(species);
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(player, MOVE_IVY_CUDGEL); }
|
|
|
|
} SCENE {
|
|
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_IVY_CUDGEL, player);
|
|
|
|
HP_BAR(opponent);
|
|
|
|
MESSAGE("It's super effective!");
|
|
|
|
}
|
|
|
|
}
|
2023-12-30 10:40:58 +00:00
|
|
|
|
|
|
|
SINGLE_BATTLE_TEST("Ivy Cudgel does not change the move type if used by Pokémon other than Ogerpon")
|
|
|
|
{
|
|
|
|
u16 item;
|
|
|
|
|
|
|
|
PARAMETRIZE { item = ITEM_NONE; }
|
|
|
|
PARAMETRIZE { item = ITEM_CORNERSTONE_MASK; }
|
|
|
|
PARAMETRIZE { item = ITEM_WELLSPRING_MASK; }
|
|
|
|
PARAMETRIZE { item = ITEM_HEARTHFLAME_MASK; }
|
|
|
|
|
|
|
|
GIVEN {
|
|
|
|
PLAYER(SPECIES_WOBBUFFET) { Item(item); }
|
|
|
|
OPPONENT(SPECIES_BLASTOISE);
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(player, MOVE_IVY_CUDGEL); }
|
|
|
|
} SCENE {
|
|
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_IVY_CUDGEL, player);
|
|
|
|
HP_BAR(opponent);
|
|
|
|
MESSAGE("It's super effective!"); // Should be super effective everytime if type isnt being changed
|
|
|
|
}
|
|
|
|
}
|