#include "global.h" #include "test/battle.h" SINGLE_BATTLE_TEST("Magician does not get self-damage recoil after stealing Life Orb") { GIVEN { ASSUME(gItems[ITEM_LIFE_ORB].holdEffect == HOLD_EFFECT_LIFE_ORB); ASSUME(gBattleMoves[MOVE_TACKLE].power != 0); PLAYER(SPECIES_DELPHOX) { Ability(ABILITY_MAGICIAN); Item(ITEM_NONE); } OPPONENT(SPECIES_WOBBUFFET) { Item(ITEM_LIFE_ORB); } } WHEN { TURN { MOVE(player, MOVE_TACKLE); } TURN { MOVE(player, MOVE_TACKLE); } } SCENE { // 1st turn MESSAGE("Delphox used Tackle!"); ABILITY_POPUP(player, ABILITY_MAGICIAN); MESSAGE("Delphox stole Foe Wobbuffet's Life Orb!"); NONE_OF { HP_BAR(player); MESSAGE("Delphox was hurt by its Life Orb!"); } // 2nd turn - Life Orb recoil happens now MESSAGE("Delphox used Tackle!"); HP_BAR(player); MESSAGE("Delphox was hurt by its Life Orb!"); } }