Add redirection logic to Lightning Rod and Storm Drain
This commit is contained in:
1 parent
60c3c0a008
commit
71e820f149
5 files changed
+58
-12
No files matched your search
@@ -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());
|
||||
|
||||
|
||||
Reference in new issue
Block a user