mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-27 04:04:17 +01:00
Included battle_util.h
, fixed parameter IsMoveMakingContact
This commit is contained in:
parent
f0934ea272
commit
caf2548830
@ -54,7 +54,7 @@
|
||||
#include "constants/rgb.h"
|
||||
#include "data.h"
|
||||
#include "constants/party_menu.h"
|
||||
#include "src/battle_util.c"
|
||||
#include "battle_util.h"
|
||||
|
||||
extern struct MusicPlayerInfo gMPlayInfo_BGM;
|
||||
|
||||
@ -4781,7 +4781,7 @@ static void Cmd_moveend(void)
|
||||
switch (gBattleScripting.moveendState)
|
||||
{
|
||||
case MOVEEND_PROTECT_LIKE_EFFECT:
|
||||
if (IsMoveMakingContact(move, gBattlerAttacker))
|
||||
if (IsMoveMakingContact(gCurrentMove, gBattlerAttacker))
|
||||
{
|
||||
if (gProtectStructs[gBattlerTarget].spikyShielded && GetBattlerAbility(gBattlerAttacker) != ABILITY_MAGIC_GUARD)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user