mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-14 07:33:44 +01:00
add inner focus ability popup msg
This commit is contained in:
parent
13f9919b9e
commit
07b0ce9737
@ -8498,6 +8498,13 @@ 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
|
||||||
|
@ -169,6 +169,7 @@ 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[];
|
||||||
|
@ -2940,9 +2940,19 @@ void SetMoveEffect(bool32 primary, u32 certain)
|
|||||||
break;
|
break;
|
||||||
case MOVE_EFFECT_FLINCH:
|
case MOVE_EFFECT_FLINCH:
|
||||||
if (battlerAbility == ABILITY_INNER_FOCUS)
|
if (battlerAbility == ABILITY_INNER_FOCUS)
|
||||||
|
{
|
||||||
|
if (primary == TRUE || certain == MOVE_EFFECT_CERTAIN)
|
||||||
|
{
|
||||||
|
gLastUsedAbility = ABILITY_INNER_FOCUS;
|
||||||
|
gBattlerAbility = gEffectBattler;
|
||||||
|
RecordAbilityBattle(gEffectBattler, ABILITY_INNER_FOCUS);
|
||||||
|
gBattlescriptCurrInstr = BattleScript_FlinchPrevention;
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
gBattlescriptCurrInstr++;
|
gBattlescriptCurrInstr++;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (GetBattlerTurnOrderNum(gEffectBattler) > gCurrentTurnActionNumber)
|
if (GetBattlerTurnOrderNum(gEffectBattler) > gCurrentTurnActionNumber)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user