mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-07 18:13:21 +01:00
Tweaked Oblivious
-Made it unaffected by a foe's taunt. -Changed the Battle Script it calls when a foe tries to infatuate.
This commit is contained in:
parent
d270dee6bc
commit
da24b9c251
@ -9689,7 +9689,7 @@ static void Cmd_tryinfatuating(void)
|
||||
|
||||
if (GetBattlerAbility(gBattlerTarget) == ABILITY_OBLIVIOUS)
|
||||
{
|
||||
gBattlescriptCurrInstr = BattleScript_ObliviousPreventsAttraction;
|
||||
gBattlescriptCurrInstr = BattleScript_NotAffected;
|
||||
gLastUsedAbility = ABILITY_OBLIVIOUS;
|
||||
RecordAbilityBattle(gBattlerTarget, ABILITY_OBLIVIOUS);
|
||||
}
|
||||
@ -11094,7 +11094,13 @@ static void Cmd_jumpifnodamage(void)
|
||||
|
||||
static void Cmd_settaunt(void)
|
||||
{
|
||||
if (gDisableStructs[gBattlerTarget].tauntTimer == 0)
|
||||
if (GetBattlerAbility(gBattlerTarget) == ABILITY_OBLIVIOUS)
|
||||
{
|
||||
gBattlescriptCurrInstr = BattleScript_NotAffected;
|
||||
gLastUsedAbility = ABILITY_OBLIVIOUS;
|
||||
RecordAbilityBattle(gBattlerTarget, ABILITY_OBLIVIOUS);
|
||||
}
|
||||
else if (gDisableStructs[gBattlerTarget].tauntTimer == 0)
|
||||
{
|
||||
u8 turns = 4;
|
||||
if (GetBattlerTurnOrderNum(gBattlerTarget) > GetBattlerTurnOrderNum(gBattlerAttacker))
|
||||
|
Loading…
Reference in New Issue
Block a user