mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-03-19 20:18:34 +01:00
Fix Queenly Majesty
This commit is contained in:
parent
4c9ea32d19
commit
7051f261d1
@ -3084,13 +3084,11 @@ u8 AbilityBattleEffects(u8 caseID, u8 battler, u8 ability, u8 special, u16 moveA
|
|||||||
gBattlescriptCurrInstr = BattleScript_SoundproofProtected;
|
gBattlescriptCurrInstr = BattleScript_SoundproofProtected;
|
||||||
effect = 1;
|
effect = 1;
|
||||||
}
|
}
|
||||||
else if (((gLastUsedAbility == ABILITY_DAZZLING
|
else if ((((gLastUsedAbility == ABILITY_DAZZLING || gLastUsedAbility == ABILITY_QUEENLY_MAJESTY
|
||||||
|| (IsBattlerAlive(battler ^= BIT_FLANK) && GetBattlerAbility(battler) == ABILITY_DAZZLING)
|
|| (IsBattlerAlive(battler ^= BIT_FLANK)
|
||||||
)
|
&& ((GetBattlerAbility(battler) == ABILITY_DAZZLING) || GetBattlerAbility(battler) == ABILITY_QUEENLY_MAJESTY)))
|
||||||
|| (gLastUsedAbility == ABILITY_QUEENLY_MAJESTY
|
|
||||||
|| (IsBattlerAlive(battler ^= BIT_FLANK) && GetBattlerAbility(battler) == ABILITY_QUEENLY_MAJESTY)
|
|
||||||
))
|
))
|
||||||
&& GetChosenMovePriority(battler) > 0
|
&& GetChosenMovePriority(gBattlerAttacker) > 0
|
||||||
&& GetBattlerSide(gBattlerAttacker) != GetBattlerSide(battler))
|
&& GetBattlerSide(gBattlerAttacker) != GetBattlerSide(battler))
|
||||||
{
|
{
|
||||||
if (gBattleMons[gBattlerAttacker].status2 & STATUS2_MULTIPLETURNS)
|
if (gBattleMons[gBattlerAttacker].status2 & STATUS2_MULTIPLETURNS)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user