mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-18 17:34:20 +01:00
Fixed Ability Pop Up for Immunity-type abilities with Mold Breaker. (#301)
* Fixed Ability Pop Up for Immunity-type abilities with Mold Breaker When a mon with Mold Breaker caused a status move to another one with an Immunity-type ability such as that mon healed inmiediatly from it, the ability pop up would incorrectly show the attacker's ability instead. * Compressed 3 lines into one.
This commit is contained in:
parent
64031dd672
commit
1fc89941ac
@ -3618,8 +3618,7 @@ u8 AbilityBattleEffects(u8 caseID, u8 battler, u8 ability, u8 special, u16 moveA
|
||||
|
||||
BattleScriptPushCursor();
|
||||
gBattlescriptCurrInstr = BattleScript_AbilityCuredStatus;
|
||||
gBattleScripting.battler = battler;
|
||||
gActiveBattler = battler;
|
||||
gBattleScripting.battler = gActiveBattler = gAbilityBattler = battler;
|
||||
BtlController_EmitSetMonData(0, REQUEST_STATUS_BATTLE, 0, 4, &gBattleMons[gActiveBattler].status1);
|
||||
MarkBattlerForControllerExec(gActiveBattler);
|
||||
return effect;
|
||||
|
Loading…
x
Reference in New Issue
Block a user