Receiver/Power of Alchemy (#3889)
This commit is contained in:
parent
ab75ad6d02
commit
7aaefe72fb
@ -9210,28 +9210,14 @@ static void Cmd_various(void)
|
|||||||
i = GetBattlerAbility(gBattlerAbility);
|
i = GetBattlerAbility(gBattlerAbility);
|
||||||
if (IsBattlerAlive(gBattlerAbility)
|
if (IsBattlerAlive(gBattlerAbility)
|
||||||
&& (i == ABILITY_RECEIVER || i == ABILITY_POWER_OF_ALCHEMY)
|
&& (i == ABILITY_RECEIVER || i == ABILITY_POWER_OF_ALCHEMY)
|
||||||
&& GetBattlerHoldEffect(battler, TRUE) != HOLD_EFFECT_ABILITY_SHIELD)
|
&& GetBattlerHoldEffect(battler, TRUE) != HOLD_EFFECT_ABILITY_SHIELD
|
||||||
|
&& !gAbilities[gBattleMons[battler].ability].cantBeCopied)
|
||||||
{
|
{
|
||||||
switch (gBattleMons[battler].ability)
|
gBattleStruct->tracedAbility[gBattlerAbility] = gBattleMons[battler].ability; // re-using the variable for trace
|
||||||
{ // Can't copy these abilities.
|
gBattleScripting.battler = battler;
|
||||||
case ABILITY_POWER_OF_ALCHEMY: case ABILITY_RECEIVER:
|
BattleScriptPush(cmd->nextInstr);
|
||||||
case ABILITY_FORECAST: case ABILITY_MULTITYPE:
|
gBattlescriptCurrInstr = BattleScript_ReceiverActivates;
|
||||||
case ABILITY_FLOWER_GIFT: case ABILITY_ILLUSION:
|
return;
|
||||||
case ABILITY_WONDER_GUARD: case ABILITY_ZEN_MODE:
|
|
||||||
case ABILITY_STANCE_CHANGE: case ABILITY_IMPOSTER:
|
|
||||||
case ABILITY_POWER_CONSTRUCT: case ABILITY_BATTLE_BOND:
|
|
||||||
case ABILITY_SCHOOLING: case ABILITY_COMATOSE:
|
|
||||||
case ABILITY_SHIELDS_DOWN: case ABILITY_DISGUISE:
|
|
||||||
case ABILITY_RKS_SYSTEM: case ABILITY_TRACE:
|
|
||||||
case ABILITY_ZERO_TO_HERO:
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
gBattleStruct->tracedAbility[gBattlerAbility] = gBattleMons[battler].ability; // re-using the variable for trace
|
|
||||||
gBattleScripting.battler = battler;
|
|
||||||
BattleScriptPush(cmd->nextInstr);
|
|
||||||
gBattlescriptCurrInstr = BattleScript_ReceiverActivates;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user