mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-02-21 19:54:14 +01:00
random move to called move
This commit is contained in:
parent
60e8c80c4c
commit
37d8859404
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user