Minor ability fixes
Status moves that target both opponents will trigger a mon with Clear Body, White Smoke, Hyper Cutter etc. to prevent the loss of stats, but if its partner is targeted first, that partner gets the popup: https://drive.google.com/open?id=1dtTfgxvppD4s2ZL5scPDz9YDf4n7AhMW This fixes that.
This commit is contained in:
parent
34cbb26e5e
commit
408485263d
1 changed files with 3 additions and 0 deletions
|
@ -7868,6 +7868,7 @@ static u32 ChangeStatBuffs(s8 statValue, u32 statId, u32 flags, const u8 *BS_ptr
|
||||||
{
|
{
|
||||||
BattleScriptPush(BS_ptr);
|
BattleScriptPush(BS_ptr);
|
||||||
gBattleScripting.battler = gActiveBattler;
|
gBattleScripting.battler = gActiveBattler;
|
||||||
|
gBattlerAbility = gActiveBattler;
|
||||||
gBattlescriptCurrInstr = BattleScript_AbilityNoStatLoss;
|
gBattlescriptCurrInstr = BattleScript_AbilityNoStatLoss;
|
||||||
gLastUsedAbility = gBattleMons[gActiveBattler].ability;
|
gLastUsedAbility = gBattleMons[gActiveBattler].ability;
|
||||||
RecordAbilityBattle(gActiveBattler, gLastUsedAbility);
|
RecordAbilityBattle(gActiveBattler, gLastUsedAbility);
|
||||||
|
@ -7883,6 +7884,7 @@ static u32 ChangeStatBuffs(s8 statValue, u32 statId, u32 flags, const u8 *BS_ptr
|
||||||
{
|
{
|
||||||
BattleScriptPush(BS_ptr);
|
BattleScriptPush(BS_ptr);
|
||||||
gBattleScripting.battler = gActiveBattler;
|
gBattleScripting.battler = gActiveBattler;
|
||||||
|
gBattlerAbility = gActiveBattler;
|
||||||
gBattlescriptCurrInstr = BattleScript_AbilityNoSpecificStatLoss;
|
gBattlescriptCurrInstr = BattleScript_AbilityNoSpecificStatLoss;
|
||||||
gLastUsedAbility = gBattleMons[gActiveBattler].ability;
|
gLastUsedAbility = gBattleMons[gActiveBattler].ability;
|
||||||
RecordAbilityBattle(gActiveBattler, gLastUsedAbility);
|
RecordAbilityBattle(gActiveBattler, gLastUsedAbility);
|
||||||
|
@ -7896,6 +7898,7 @@ static u32 ChangeStatBuffs(s8 statValue, u32 statId, u32 flags, const u8 *BS_ptr
|
||||||
{
|
{
|
||||||
BattleScriptPush(BS_ptr);
|
BattleScriptPush(BS_ptr);
|
||||||
gBattleScripting.battler = gActiveBattler;
|
gBattleScripting.battler = gActiveBattler;
|
||||||
|
gBattlerAbility = gActiveBattler;
|
||||||
gBattlescriptCurrInstr = BattleScript_AbilityNoSpecificStatLoss;
|
gBattlescriptCurrInstr = BattleScript_AbilityNoSpecificStatLoss;
|
||||||
gLastUsedAbility = gBattleMons[gActiveBattler].ability;
|
gLastUsedAbility = gBattleMons[gActiveBattler].ability;
|
||||||
RecordAbilityBattle(gActiveBattler, gLastUsedAbility);
|
RecordAbilityBattle(gActiveBattler, gLastUsedAbility);
|
||||||
|
|
Loading…
Reference in a new issue