Fix Switcheroo giving score even if the opponent has no held item (#5412)
This commit is contained in:
parent
68c51f8412
commit
f7d2e62ccc
1 changed files with 1 additions and 1 deletions
|
@ -4065,7 +4065,7 @@ static u32 AI_CalcMoveEffectScore(u32 battlerAtk, u32 battlerDef, u32 move)
|
|||
ADJUST_SCORE(DECENT_EFFECT); // Force 'em out next turn
|
||||
break;
|
||||
default:
|
||||
if (move != MOVE_BESTOW && aiData->items[battlerAtk] == ITEM_NONE)
|
||||
if (move != MOVE_BESTOW && aiData->items[battlerAtk] == ITEM_NONE && aiData->items[battlerDef] != ITEM_NONE)
|
||||
{
|
||||
switch (aiData->holdEffects[battlerDef])
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue