mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-17 12:07:38 +01:00
Merge pull request #1446 from LOuroboros/inner_focus
Tweaked Inner Focus
This commit is contained in:
commit
1ff3718d1f
@ -7081,13 +7081,6 @@ BattleScript_ObliviousPreventsAttraction::
|
|||||||
waitmessage B_WAIT_TIME_LONG
|
waitmessage B_WAIT_TIME_LONG
|
||||||
goto BattleScript_MoveEnd
|
goto BattleScript_MoveEnd
|
||||||
|
|
||||||
BattleScript_FlinchPrevention::
|
|
||||||
pause B_WAIT_TIME_SHORT
|
|
||||||
call BattleScript_AbilityPopUp
|
|
||||||
printstring STRINGID_PKMNSXPREVENTSFLINCHING
|
|
||||||
waitmessage B_WAIT_TIME_LONG
|
|
||||||
goto BattleScript_MoveEnd
|
|
||||||
|
|
||||||
BattleScript_OwnTempoPrevents::
|
BattleScript_OwnTempoPrevents::
|
||||||
pause B_WAIT_TIME_SHORT
|
pause B_WAIT_TIME_SHORT
|
||||||
call BattleScript_AbilityPopUp
|
call BattleScript_AbilityPopUp
|
||||||
|
@ -166,7 +166,6 @@ extern const u8 BattleScript_BRNPrevention[];
|
|||||||
extern const u8 BattleScript_PRLZPrevention[];
|
extern const u8 BattleScript_PRLZPrevention[];
|
||||||
extern const u8 BattleScript_PSNPrevention[];
|
extern const u8 BattleScript_PSNPrevention[];
|
||||||
extern const u8 BattleScript_ObliviousPreventsAttraction[];
|
extern const u8 BattleScript_ObliviousPreventsAttraction[];
|
||||||
extern const u8 BattleScript_FlinchPrevention[];
|
|
||||||
extern const u8 BattleScript_OwnTempoPrevents[];
|
extern const u8 BattleScript_OwnTempoPrevents[];
|
||||||
extern const u8 BattleScript_SoundproofProtected[];
|
extern const u8 BattleScript_SoundproofProtected[];
|
||||||
extern const u8 BattleScript_AbilityNoSpecificStatLoss[];
|
extern const u8 BattleScript_AbilityNoSpecificStatLoss[];
|
||||||
|
@ -2815,16 +2815,7 @@ void SetMoveEffect(bool32 primary, u32 certain)
|
|||||||
case MOVE_EFFECT_FLINCH:
|
case MOVE_EFFECT_FLINCH:
|
||||||
if (GetBattlerAbility(gEffectBattler) == ABILITY_INNER_FOCUS)
|
if (GetBattlerAbility(gEffectBattler) == ABILITY_INNER_FOCUS)
|
||||||
{
|
{
|
||||||
if (primary == TRUE || certain == MOVE_EFFECT_CERTAIN)
|
gBattlescriptCurrInstr++;
|
||||||
{
|
|
||||||
gLastUsedAbility = ABILITY_INNER_FOCUS;
|
|
||||||
RecordAbilityBattle(gEffectBattler, ABILITY_INNER_FOCUS);
|
|
||||||
gBattlescriptCurrInstr = BattleScript_FlinchPrevention;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
gBattlescriptCurrInstr++;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user