Change accuracy ignore moves to only apply to the original target

This commit is contained in:
Flashfyre committed 2023-07-04 12:59:58 -04:00
1 parent 969d54dd2e
commit a7aa639bb2
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1347,7 +1347,7 @@ class MoveEffectPhase extends PokemonPhase {
if (hiddenTag && !this.move.getMove().getAttrs(HitsTagAttr).filter(hta => (hta as HitsTagAttr).tagType === hiddenTag.tagType).length)
return false;
if (this.getUserPokemon().getTag(BattlerTagType.IGNORE_ACCURACY))
if (this.getUserPokemon().getTag(BattlerTagType.IGNORE_ACCURACY) && (this.getUserPokemon().getLastXMoves().find(() => true)?.targets || []).indexOf(target.getBattlerIndex()) > -1)
return true;
const moveAccuracy = new Utils.NumberHolder(this.move.getMove().accuracy);