random move to called move

This commit is contained in:
DizzyEggg 2018-09-22 19:27:56 +02:00
parent 60e8c80c4c
commit 37d8859404
2 changed files with 6 additions and 6 deletions

View file

@ -325,7 +325,7 @@ BattleScript_EffectCopycat:
trycopycat BattleScript_CopycatFail
attackanimation
waitanimation
jumptorandomattack TRUE
jumptocalledmove TRUE
BattleScript_CopycatFail:
ppreduce
goto BattleScript_ButItFailed
@ -748,7 +748,7 @@ BattleScript_EffectMeFirst:
waitanimation
setbyte sB_ANIM_TURN, 0x0
setbyte sB_ANIM_TARGETS_HIT, 0x0
jumptorandomattack TRUE
jumptocalledmove TRUE
BattleScript_EffectAttackSpAttackUp:
attackcanceler

View file

@ -6597,9 +6597,9 @@ static void atk76_various(void)
gBattlescriptCurrInstr = T1_READ_PTR(gBattlescriptCurrInstr + 3);
break;
default:
gRandomMove = move;
gCalledMove = move;
gHitMarker &= ~(HITMARKER_ATTACKSTRING_PRINTED);
gBattlerTarget = GetMoveTarget(gRandomMove, 0);
gBattlerTarget = GetMoveTarget(gCalledMove, 0);
gStatuses3[gBattlerAttacker] |= STATUS3_ME_FIRST;
gBattlescriptCurrInstr += 7;
break;
@ -6770,9 +6770,9 @@ static void atk76_various(void)
}
else
{
gRandomMove = gLastUsedMove;
gCalledMove = gLastUsedMove;
gHitMarker &= ~(HITMARKER_ATTACKSTRING_PRINTED);
gBattlerTarget = GetMoveTarget(gRandomMove, 0);
gBattlerTarget = GetMoveTarget(gCalledMove, 0);
gBattlescriptCurrInstr += 7;
}
return;