battle_controller_link_opponent
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -178,7 +178,7 @@ static void OpponentBufferRunCommand(void)
|
||||
{
|
||||
if (gBattleControllerExecFlags & gBitTable[gActiveBattler])
|
||||
{
|
||||
if (gBattleBufferA[gActiveBattler][0] < ARRAY_COUNT(sOpponentBufferCommands))
|
||||
if (gBattleBufferA[gActiveBattler][0] < NELEMS(sOpponentBufferCommands))
|
||||
sOpponentBufferCommands[gBattleBufferA[gActiveBattler][0]]();
|
||||
else
|
||||
OpponentBufferExecCompleted();
|
||||
|
||||
@@ -211,7 +211,7 @@ static void PlayerBufferRunCommand(void)
|
||||
{
|
||||
if (gBattleControllerExecFlags & gBitTable[gActiveBattler])
|
||||
{
|
||||
if (gBattleBufferA[gActiveBattler][0] < ARRAY_COUNT(sPlayerBufferCommands))
|
||||
if (gBattleBufferA[gActiveBattler][0] < NELEMS(sPlayerBufferCommands))
|
||||
sPlayerBufferCommands[gBattleBufferA[gActiveBattler][0]]();
|
||||
else
|
||||
PlayerBufferExecCompleted();
|
||||
@@ -329,7 +329,7 @@ static void HandleInputChooseTarget(void)
|
||||
s32 i;
|
||||
u8 identities[4];
|
||||
|
||||
memcpy(identities, sTargetIdentities, ARRAY_COUNT(sTargetIdentities));
|
||||
memcpy(identities, sTargetIdentities, NELEMS(sTargetIdentities));
|
||||
DoBounceEffect(gMultiUsePlayerCursor, BOUNCE_HEALTHBOX, 15, 1);
|
||||
i = 0;
|
||||
if (gBattlersCount != 0)
|
||||
|
||||
+1
-1
@@ -1482,7 +1482,7 @@ bool8 HasNoMonsToSwitch(u8 battler, u8 partyIdBattlerOn1, u8 partyIdBattlerOn2)
|
||||
{
|
||||
if (gBattleTypeFlags & BATTLE_TYPE_MULTI)
|
||||
{
|
||||
playerId = GetBankMultiplayerId(battler);
|
||||
playerId = GetBattlerMultiplayerId(battler);
|
||||
if (GetBattlerSide(battler) == B_SIDE_PLAYER)
|
||||
party = gPlayerParty;
|
||||
else
|
||||
|
||||
+2
-2
@@ -6482,7 +6482,7 @@ bool8 GetLinkTrainerFlankId(u8 linkPlayerId)
|
||||
return retVal;
|
||||
}
|
||||
|
||||
s32 GetBankMultiplayerId(u16 a1)
|
||||
s32 GetBattlerMultiplayerId(u16 a1)
|
||||
{
|
||||
s32 id;
|
||||
for (id = 0; id < MAX_LINK_PLAYERS; id++)
|
||||
@@ -7133,7 +7133,7 @@ static bool8 IsShinyOtIdPersonality(u32 otId, u32 personality)
|
||||
u8 *GetTrainerPartnerName(void)
|
||||
{
|
||||
u8 id = GetMultiplayerId();
|
||||
return gLinkPlayers[GetBankMultiplayerId(gLinkPlayers[id].id ^ 2)].name;
|
||||
return gLinkPlayers[GetBattlerMultiplayerId(gLinkPlayers[id].id ^ 2)].name;
|
||||
}
|
||||
|
||||
u8 GetPlayerPartyHighestLevel(void)
|
||||
|
||||
Reference in New Issue
Block a user