mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-14 03:19:28 +02:00
fixed oopsie
This commit is contained in:
parent
606b3994d0
commit
ac438fd174
@ -294,10 +294,14 @@ export class GameManager {
|
||||
.getMoveset()
|
||||
[movePosition].getMove();
|
||||
|
||||
if (move.isMultiTarget() && targetIndex !== undefined) {
|
||||
expect.fail(`targetIndex was passed to selectMove() but move ("${move.name}") is not targetted`);
|
||||
// Multi target attacks do not select a target
|
||||
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);
|
||||
},
|
||||
() =>
|
||||
|
Loading…
Reference in New Issue
Block a user