73747576777879
if (moveIndex == -1 || targetId == null) { return null; } Slot userSlot = battle.getSlot(slotId); Slot targetSlot = battle.getSlot(targetId); return new AttackTurn(battle, userSlot, targetSlot, userSlot.party().get(0).move(moveIndex)); }
282283284285286287288289
} while (slot.equals(randomSlot)); int randomMoveIndex = (int) ((Math.random()) * slot.leader().moveCount()); Move randomMove = slot.leader().move(randomMoveIndex); addTurn(new AttackTurn(this, slot, randomSlot, randomMove)); } }