Included battle_util.h
, fixed parameter IsMoveMakingContact
This commit is contained in:
parent
f0934ea272
commit
caf2548830
1 changed files with 2 additions and 2 deletions
|
@ -54,7 +54,7 @@
|
||||||
#include "constants/rgb.h"
|
#include "constants/rgb.h"
|
||||||
#include "data.h"
|
#include "data.h"
|
||||||
#include "constants/party_menu.h"
|
#include "constants/party_menu.h"
|
||||||
#include "src/battle_util.c"
|
#include "battle_util.h"
|
||||||
|
|
||||||
extern struct MusicPlayerInfo gMPlayInfo_BGM;
|
extern struct MusicPlayerInfo gMPlayInfo_BGM;
|
||||||
|
|
||||||
|
@ -4781,7 +4781,7 @@ static void Cmd_moveend(void)
|
||||||
switch (gBattleScripting.moveendState)
|
switch (gBattleScripting.moveendState)
|
||||||
{
|
{
|
||||||
case MOVEEND_PROTECT_LIKE_EFFECT:
|
case MOVEEND_PROTECT_LIKE_EFFECT:
|
||||||
if (IsMoveMakingContact(move, gBattlerAttacker))
|
if (IsMoveMakingContact(gCurrentMove, gBattlerAttacker))
|
||||||
{
|
{
|
||||||
if (gProtectStructs[gBattlerTarget].spikyShielded && GetBattlerAbility(gBattlerAttacker) != ABILITY_MAGIC_GUARD)
|
if (gProtectStructs[gBattlerTarget].spikyShielded && GetBattlerAbility(gBattlerAttacker) != ABILITY_MAGIC_GUARD)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue