fix passing hold effect instead of ability (#4789)
This commit is contained in:
parent
c2ca22d474
commit
f868de066d
1 changed files with 1 additions and 1 deletions
|
@ -3715,7 +3715,7 @@ static u32 AI_CalcMoveEffectScore(u32 battlerAtk, u32 battlerDef, u32 move)
|
|||
ADJUST_SCORE(GOOD_EFFECT);
|
||||
break;
|
||||
case EFFECT_SANDSTORM:
|
||||
if (ShouldSetSandstorm(battlerAtk, aiData->holdEffects[battlerAtk], aiData->holdEffects[battlerAtk]))
|
||||
if (ShouldSetSandstorm(battlerAtk, aiData->abilities[battlerAtk], aiData->holdEffects[battlerAtk]))
|
||||
{
|
||||
ADJUST_SCORE(DECENT_EFFECT);
|
||||
if (aiData->holdEffects[battlerAtk] == HOLD_EFFECT_SMOOTH_ROCK)
|
||||
|
|
Loading…
Reference in a new issue