Add redirection logic to Lightning Rod and Storm Drain

This commit is contained in:
Flashfyre committed 2024-03-11 20:55:41 -04:00
1 parent 60c3c0a008
commit 71e820f149
5 files changed
+58 -12

No files matched your search

+1 -1
View File
@@ -2303,7 +2303,7 @@ export class EnemyPokemon extends Pokemon {
getNextTargets(moveId: Moves): BattlerIndex[] {
const moveTargets = getMoveTargets(this, moveId);
const targets = this.scene.getField().filter(p => p?.isActive(true) && moveTargets.targets.indexOf(p.getBattlerIndex()) > -1);
const targets = this.scene.getField(true).filter(p => moveTargets.targets.indexOf(p.getBattlerIndex()) > -1);
if (moveTargets.multiple)
return targets.map(p => p.getBattlerIndex());