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:
Eduardo Alvaro Quezada D'Ottone 2020-03-14 08:16:18 -03:00 committed by GitHub
parent 64031dd672
commit 1fc89941ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;