mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-16 12:29:26 +02:00
fixed oopsie
This commit is contained in:
parent
606b3994d0
commit
ac438fd174
@ -294,10 +294,14 @@ export class GameManager {
|
|||||||
.getMoveset()
|
.getMoveset()
|
||||||
[movePosition].getMove();
|
[movePosition].getMove();
|
||||||
|
|
||||||
if (move.isMultiTarget() && targetIndex !== undefined) {
|
// Multi target attacks do not select a target
|
||||||
expect.fail(`targetIndex was passed to selectMove() but move ("${move.name}") is not targetted`);
|
if (move.isMultiTarget()) {
|
||||||
|
if (targetIndex !== undefined) {
|
||||||
|
expect.fail(`targetIndex was passed to selectMove() but move ("${move.name}") is not targeted`);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
handler.setCursor(targetIndex ?? BattlerIndex.ENEMY);
|
||||||
}
|
}
|
||||||
handler.setCursor(targetIndex ?? BattlerIndex.ENEMY);
|
|
||||||
handler.processInput(Button.ACTION);
|
handler.processInput(Button.ACTION);
|
||||||
},
|
},
|
||||||
() =>
|
() =>
|
||||||
|
Loading…
Reference in New Issue
Block a user