Receiver/Power of Alchemy (#3889)
This commit is contained in:
parent
ab75ad6d02
commit
7aaefe72fb
1 changed files with 7 additions and 21 deletions
|
@ -9210,28 +9210,14 @@ static void Cmd_various(void)
|
|||
i = GetBattlerAbility(gBattlerAbility);
|
||||
if (IsBattlerAlive(gBattlerAbility)
|
||||
&& (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)
|
||||
{ // Can't copy these abilities.
|
||||
case ABILITY_POWER_OF_ALCHEMY: case ABILITY_RECEIVER:
|
||||
case ABILITY_FORECAST: case ABILITY_MULTITYPE:
|
||||
case ABILITY_FLOWER_GIFT: case ABILITY_ILLUSION:
|
||||
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;
|
||||
}
|
||||
gBattleStruct->tracedAbility[gBattlerAbility] = gBattleMons[battler].ability; // re-using the variable for trace
|
||||
gBattleScripting.battler = battler;
|
||||
BattleScriptPush(cmd->nextInstr);
|
||||
gBattlescriptCurrInstr = BattleScript_ReceiverActivates;
|
||||
return;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue