apply suggestions
This commit is contained in:
parent
783ec0e957
commit
bf56ea8a8b
@ -1366,8 +1366,8 @@
|
||||
.byte \battler
|
||||
.endm
|
||||
|
||||
.macro setoctolock battler:req, failInstr:req
|
||||
callnative BS_Octolock
|
||||
.macro trysetoctolock battler:req, failInstr:req
|
||||
callnative BS_TrySetOctolock
|
||||
.byte \battler
|
||||
.4byte \failInstr
|
||||
.endm
|
||||
|
||||
@ -1057,7 +1057,7 @@ BattleScript_EffectOctolock:
|
||||
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
||||
attackstring
|
||||
ppreduce
|
||||
setoctolock BS_TARGET, BattleScript_ButItFailed
|
||||
trysetoctolock BS_TARGET, BattleScript_ButItFailed
|
||||
attackanimation
|
||||
waitanimation
|
||||
printstring STRINGID_CANTESCAPEBECAUSEOFCURRENTMOVE
|
||||
|
||||
@ -15697,7 +15697,7 @@ static bool8 IsFinalStrikeEffect(u16 move)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static bool8 CanAbilityPreventStatLoss(u16 abilityDef, bool8 isIntimidate)
|
||||
static bool8 CanAbilityPreventStatLoss(u16 abilityDef, bool8 byIntimidate)
|
||||
{
|
||||
switch (abilityDef)
|
||||
{
|
||||
@ -15709,7 +15709,7 @@ static bool8 CanAbilityPreventStatLoss(u16 abilityDef, bool8 isIntimidate)
|
||||
case ABILITY_SCRAPPY:
|
||||
case ABILITY_OWN_TEMPO:
|
||||
case ABILITY_OBLIVIOUS:
|
||||
if (isIntimidate && (B_UPDATED_INTIMIDATE >= GEN_8))
|
||||
if (byIntimidate && (B_UPDATED_INTIMIDATE >= GEN_8))
|
||||
return TRUE;
|
||||
break;
|
||||
}
|
||||
@ -16238,7 +16238,7 @@ void BS_JumpIfTerrainAffected(void)
|
||||
gBattlescriptCurrInstr = cmd->nextInstr;
|
||||
}
|
||||
|
||||
void BS_Octolock(void)
|
||||
void BS_TrySetOctolock(void)
|
||||
{
|
||||
NATIVE_ARGS(u8 battler, const u8 *failInstr);
|
||||
u32 battler = GetBattlerForBattleScript(cmd->battler);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user