2023-10-11 10:09:50 +01:00
|
|
|
#include "global.h"
|
|
|
|
#include "test/battle.h"
|
|
|
|
|
2023-12-14 17:09:06 +00:00
|
|
|
ASSUMPTIONS
|
|
|
|
{
|
|
|
|
ASSUME(gBattleMoves[MOVE_IVY_CUDGEL].effect == EFFECT_CHANGE_TYPE_ON_ITEM);
|
|
|
|
ASSUME(gBattleMoves[MOVE_IVY_CUDGEL].argument == HOLD_EFFECT_MASK);
|
|
|
|
}
|
|
|
|
|
2023-12-16 08:22:36 +00:00
|
|
|
SINGLE_BATTLE_TEST("Ivy Cudgel changes the move type depending on the mask the user holds")
|
2023-10-11 10:09:50 +01:00
|
|
|
{
|
|
|
|
u16 species;
|
|
|
|
u16 item;
|
|
|
|
|
|
|
|
PARAMETRIZE { species = SPECIES_BLASTOISE; item = ITEM_NONE; }
|
|
|
|
PARAMETRIZE { species = SPECIES_CHARIZARD; item = ITEM_CORNERSTONE_MASK; }
|
|
|
|
PARAMETRIZE { species = SPECIES_CHARIZARD; item = ITEM_WELLSPRING_MASK; }
|
|
|
|
PARAMETRIZE { species = SPECIES_VENUSAUR; item = ITEM_HEARTHFLAME_MASK; }
|
|
|
|
|
|
|
|
GIVEN {
|
|
|
|
PLAYER(SPECIES_WOBBUFFET) { Item(item); }
|
|
|
|
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!");
|
|
|
|
}
|
|
|
|
}
|