mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-02-20 11:13:35 +01:00
electrify works on all move types (#2817)
This commit is contained in:
parent
10410640b4
commit
35645fe01c
@ -4641,7 +4641,7 @@ static s16 AI_CheckViability(u8 battlerAtk, u8 battlerDef, u16 move, s16 score)
|
||||
score += 2; // Give target more weaknesses
|
||||
break;
|
||||
case EFFECT_ELECTRIFY:
|
||||
if (predictedMove != MOVE_NONE && gBattleMoves[predictedMove].type == TYPE_NORMAL
|
||||
if (predictedMove != MOVE_NONE
|
||||
&& (AI_DATA->abilities[battlerAtk] == ABILITY_VOLT_ABSORB
|
||||
|| AI_DATA->abilities[battlerAtk] == ABILITY_MOTOR_DRIVE
|
||||
|| AI_DATA->abilities[battlerAtk] == ABILITY_LIGHTNING_ROD))
|
||||
|
Loading…
x
Reference in New Issue
Block a user